473,545 Members | 2,291 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Rendering aspx page to email

I'm trying to send an aspx page by email. I am quite happy sending html
email from aspx pages but want to know is there is a straight forward way to
render a whole page to an email?

I have found resources that tell me how to render individual controls, but
the page I want to send is quite complicated, and I would rather just render
the whole thing.

Any advice would be greatfully received,

Adam
Nov 18 '05 #1
3 2009
Okay, Adam, we need to think a bit differently here. Remember than an ASPX
page, once it reaches the browser, is a pure text HTML document with a .aspx
extension, not an ASPX page (the real "page" is still on the server). The
same goes with an HTML email. There is no difference between an HTML email
and an HTML browser document. So, if you are sending HTML emails with ASPX
pages, you're already doing all that you can. It's simply a matter of
constructing the same HTML as the ASPX page renders to the browser, in the
email, if that is what you want.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Adam Pedder" <ad**@nothereat all.com> wrote in message
news:#8******** *****@TK2MSFTNG P10.phx.gbl...
I'm trying to send an aspx page by email. I am quite happy sending html
email from aspx pages but want to know is there is a straight forward way to render a whole page to an email?

I have found resources that tell me how to render individual controls, but
the page I want to send is quite complicated, and I would rather just render the whole thing.

Any advice would be greatfully received,

Adam

Nov 18 '05 #2
http://www.devhood.com/tutorials/tut...utorial_id=758

The above tutorial does something similar to what it sounds to me like
you're requesting. Maybe will work as a bit of a starting point for ya?

-John

"Kevin Spencer" <ks******@takem pis.com> wrote in message
news:Ow******** ******@tk2msftn gp13.phx.gbl...
Okay, Adam, we need to think a bit differently here. Remember than an ASPX
page, once it reaches the browser, is a pure text HTML document with a ..aspx extension, not an ASPX page (the real "page" is still on the server). The
same goes with an HTML email. There is no difference between an HTML email
and an HTML browser document. So, if you are sending HTML emails with ASPX
pages, you're already doing all that you can. It's simply a matter of
constructing the same HTML as the ASPX page renders to the browser, in the
email, if that is what you want.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Adam Pedder" <ad**@nothereat all.com> wrote in message
news:#8******** *****@TK2MSFTNG P10.phx.gbl...
I'm trying to send an aspx page by email. I am quite happy sending html
email from aspx pages but want to know is there is a straight forward way
to
render a whole page to an email?

I have found resources that tell me how to render individual controls,

but the page I want to send is quite complicated, and I would rather just

render
the whole thing.

Any advice would be greatfully received,

Adam


Nov 18 '05 #3
Thanks for the replies. The tutorial should give me something to work on.

Adam
"John" <jc************ *****@hotmail.c om> wrote in message
news:6H******** ********@news-server.bigpond. net.au...
http://www.devhood.com/tutorials/tut...utorial_id=758

The above tutorial does something similar to what it sounds to me like
you're requesting. Maybe will work as a bit of a starting point for ya?

-John

"Kevin Spencer" <ks******@takem pis.com> wrote in message
news:Ow******** ******@tk2msftn gp13.phx.gbl...
Okay, Adam, we need to think a bit differently here. Remember than an ASPX
page, once it reaches the browser, is a pure text HTML document with a

.aspx
extension, not an ASPX page (the real "page" is still on the server). The same goes with an HTML email. There is no difference between an HTML email and an HTML browser document. So, if you are sending HTML emails with ASPX pages, you're already doing all that you can. It's simply a matter of
constructing the same HTML as the ASPX page renders to the browser, in the email, if that is what you want.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Adam Pedder" <ad**@nothereat all.com> wrote in message
news:#8******** *****@TK2MSFTNG P10.phx.gbl...
I'm trying to send an aspx page by email. I am quite happy sending html email from aspx pages but want to know is there is a straight forward

way
to
render a whole page to an email?

I have found resources that tell me how to render individual controls,

but the page I want to send is quite complicated, and I would rather just

render
the whole thing.

Any advice would be greatfully received,

Adam



Nov 18 '05 #4

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

Similar topics

5
5264
by: Sue | last post by:
On code-behind page: (attributes set programatically for each of these elements) linkbutton added to tablecell textbox added to tablecell tablecells added to tablerow tablerow added to table (table.ID is TestTable) On .aspx page: <HeaderTemplate> <asp:Table ID="TestTable" runat="Server" /> </HeaderTemplate>
2
2075
by: Fourge | last post by:
Hi, I have run into a very strange scenario. In developing an ASP.NET application on framework version 1.1, I found that certain client-side validation scripts were not being rendered. The reason we came up with for this was because we had a PageBase base class for all our pages. This base class takes the controls on the child page class...
6
1765
by: Nautilus | last post by:
Hi there! We are rendering some PDF reports from an ASP.NET application, directly to the IE browser. Those reports are beign generated from a SQL Reporting Services server. We have the requirement of displaying the reports inside the browser. In order to do that, we have this: Response.ClearContent(); Response.ClearHeaders();...
2
3256
by: Spotnick | last post by:
I have no idea why, but since I'm trying to recreate my website using ASP.NET 2.0 I've encountered so many performance issues that I'm about to give up and continue using v1.1 Seriously, how can a page that is not that complicated be so long to render locally, it's amazing. This is the trace info: aspx.page Begin PreInit
1
1351
by: KC | last post by:
Is there anyway to tell an HtmlAnchor or Hyperlink cotroll to *not* turn a "#" in the href into the page or control page location. For example, when I place <a runat="server" id="tabLink" href="#"></a>, the link that is rendered is http://mysite/usercontrols/# . I want only "#" to be rendered. Is this possible? I tried declaratively and...
2
1761
by: Giedrius | last post by:
hi, i have an idea to make admin tool on home computer, that would generate html files using some kind of templates and database data and put these generated html files to public web server, witch doesn't have running asp.net, using ftp access. why i need so? because: 1) my project doesn't need to receive any data from browsing customers,...
5
1226
by: joshnaro | last post by:
I am writing a web service method with the purpose of gathering info from an aspx page. My problem is that the page controls are not loaded until you run a ProcessRequest() on the page. However, I would like to load the controls without actually rendering the page. Anyone know how to do this?
3
2413
by: SAL | last post by:
Hello, I did google this issue and found some stuff related to BrowserCaps section of either web.config or machine.config but it didn't work. It seems that most pages in my webapp are okay but a couple of the Firefox is munging up. So, on my information page there is a gridview in the content section of the page. The masterpage contains...
1
1221
by: =?Utf-8?B?TUNN?= | last post by:
Is it possible to have .NET controls render as HTML 4.01 Strict compliant? In web.config, there is xhtml conformance, but that does not provide an option for HTML 4.01.
0
7465
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7398
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7805
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...
1
7416
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...
0
7752
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
4944
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3449
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...
0
3441
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1878
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

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.