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 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
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
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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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>
|
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...
|
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();...
|
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
|
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...
| |
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,...
|
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?
|
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...
|
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.
|
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...
|
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...
| |
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...
|
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...
|
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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
| |