473,794 Members | 2,752 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Get a WebForm's html from within (server-side)

I have a need to get the html (in the form of a string) for a rendered
webform so that it can be used in the body of an e-mail. How is this done?

The code will be executed from a server control within the page.

Thanks,
Brad
Nov 18 '05 #1
2 1457
On Fri, 3 Sep 2004 11:50:17 -0500, Brad Mann <bm********@hot mail.com>
wrote:
I have a need to get the html (in the form of a string) for a rendered
webform so that it can be used in the body of an e-mail. How is this
done?

The code will be executed from a server control within the page.

Thanks,
Brad


There are many examples on the web; first one that came up:

http://www.devhood.com/tutorials/tut...utorial_id=758

Note if you Google more, you can also send just a control's HTML, etc.

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
Nov 18 '05 #2
Thanks for the info, but it is not quite what I needed. Sorry about the lack
of detail in my posting.

I want to get the html for the same page that creates the e-mail.

So, I have a WebForm with all kinds of useful information, as well as a
button. The button will be clicked to create an e-mail with the page's (the
same page as the button) rendered html in the e-mail's body.

How is this done?

Thanks again,
Brad
"Craig Deelsnyder" <cdeelsny@no_sp am_4_meyahoo.co m> wrote in message
news:opsdrhewwy 75dg5d@nrt-orezj2k87bn...
On Fri, 3 Sep 2004 11:50:17 -0500, Brad Mann <bm********@hot mail.com>
wrote:
I have a need to get the html (in the form of a string) for a rendered
webform so that it can be used in the body of an e-mail. How is this
done?

The code will be executed from a server control within the page.

Thanks,
Brad


There are many examples on the web; first one that came up:

http://www.devhood.com/tutorials/tut...utorial_id=758

Note if you Google more, you can also send just a control's HTML, etc.

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1845
by: Jon Booth | last post by:
I am using ascx controls to build headers and footers for my wbe application. 3 questions 1) How do I set it so that when I create a new web form created inherits from my SecurePage class and not System.Web.UI.Page by default. 2) The HTML created by default by Visual Studio does not contain <HTML><HEAD><BODY> etc as my ascx files already contain this. Ho can I modify the HTML it provides by default?
1
1047
by: quinton | last post by:
I have a webform with a custom server control applied to it. on the webform I have a single server side textbox which I wish to access from within the server side control after submiting the form back to the same webform. Please how do i do this? I am new to C#.NET and would be very greatful for some/any help. Many thanks in advance, Quinton.
1
1394
by: mg | last post by:
I get the message "server is not running ASP.NET version 1.1" when I try to deploy a WebForm app to Windows Server 2003. In the past, the same deploy to Windows Server 2000 was completely successful. But, ASP.NET 1.1 is part of the OS, right out of the box. Can you suggest what I need to do to deploy to Windows Server 2003?
5
3597
by: serge calderara | last post by:
Dear all, I am new in asp.net and prepare myself for exam I still have dificulties to understand the difference between server control and HTML control. Okey things whcih are clear are the fact that for server control component , code is running on the server side. But if I take as example a Label. I place on a webform an HTM label control and a WebForm label control, I could see that properties are different for
1
1130
by: JoNaS | last post by:
I'm developing a server control that in turns contains another server control (i.e. Label). I instantiate the label and expose the entire Label through a property. Imports System Imports System.Web Imports System.Web.UI Public Class Class1
7
3632
by: pamelafluente | last post by:
The precious input given by Laurent, Martin, Benjamin about XMLHttpRequest in Javascript, has made me think that perhaps I could improve what I am currently doing by using Ajax. Let's make it simple and schematic, to see if there is a simple Ajax answer to this. A. I have an HTML page which has some pure html/css code representing a GRID of cell. The page may also contain other objects (images, etc). B. On the server I have a windows...
2
2987
by: Luqman | last post by:
How can I open another WebForm in ASP.Net / VS 2005 without closing the Current Webform. I tried using Server.Transfer("Form2.Aspx",True) on Button_Click of Form1 but it close the current web form and opened the form2, and when I click on the button on form2 which had Server.Transfer("Form1.Aspx"), the form1 initialized and all the values of form1 controls set to blank, any idea please ? My Form1 has some textboxes and a search...
1
951
by: gvi | last post by:
Hi, I have the following requirement wherein I have a webform with webcontrols in it . While the original requirement is to database operations with it the new requirement is to along with inserting in db the webform's html needs to be sent to a different server. The new requirement needs me to send the webforms resulting html to be sent to a different webserver(essentially a https:// web site). Right now I have the page output(HTML)...
0
10433
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10212
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10161
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9035
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5436
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5560
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4112
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3720
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2919
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.