473,324 Members | 2,254 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

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 1440
On Fri, 3 Sep 2004 11:50:17 -0500, Brad Mann <bm********@hotmail.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_spam_4_meyahoo.com> wrote in message
news:opsdrhewwy75dg5d@nrt-orezj2k87bn...
On Fri, 3 Sep 2004 11:50:17 -0500, Brad Mann <bm********@hotmail.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
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...
1
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...
1
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....
5
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...
1
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...
7
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...
2
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...
1
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.