469,587 Members | 2,209 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,587 developers. It's quick & easy.

asp generate HTML

ash
i have a web page using frameset split into few pages. And I want to
generate one page of HTML code and send it through email. My question is
have to generate a HTML page using asp?
Thx very much.
Sep 12 '06 #1
6 5026
<%
Option Explicit
Const sTitle = "Hello World"
Response.Write "<html><head><title>" & sTitle & "</title></head>" &
vbCrLf
Response.Write "<body>" & sTitle & "</body></html>"
%>

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"ash" <as*@gmail.comwrote in message
news:Oz*************@TK2MSFTNGP05.phx.gbl...
i have a web page using frameset split into few pages. And I want to
generate one page of HTML code and send it through email. My question is
have to generate a HTML page using asp?
Thx very much.


Sep 12 '06 #2

"ash" <as*@gmail.comwrote in message
news:Oz*************@TK2MSFTNGP05.phx.gbl...
i have a web page using frameset split into few pages. And I want to
generate one page of HTML code and send it through email. My question is
have to generate a HTML page using asp?
The simplest approach is to build the HTML as a string in ASP. ASP doesn't
really give you any special tools for building HTML apart from the
Server.HTMLEncode method that ensures any characters that have special
meaning to HTML are encoded correctly.
Thx very much.


Sep 12 '06 #3
you could also create an html page and save as a file to be used as a template. Read the file into a string variable then email.

If the template needs to have dynamic content, use some template placeholders which can be replaced by alternate values before
mailing...


"ash" <as*@gmail.comwrote in message news:Oz*************@TK2MSFTNGP05.phx.gbl...
>i have a web page using frameset split into few pages. And I want to
generate one page of HTML code and send it through email. My question is
have to generate a HTML page using asp?
Thx very much.


Sep 16 '06 #4
ash
i want to use programming to generate a html source code from a my webpage
that i can cut&paste, and mail to other ppl. Then the recevier will get a
image of that website after he opened up that mail. How could i do that?
many Thx.

"Jon Paal" <Jon nospam Paal @ everywhere dot com¦b¶l¥ó
news:12*************@corp.supernews.com ¤¤¼¶¼g...
you could also create an html page and save as a file to be used as a
template. Read the file into a string variable then email.
>
If the template needs to have dynamic content, use some template
placeholders which can be replaced by alternate values before
mailing...


"ash" <as*@gmail.comwrote in message
news:Oz*************@TK2MSFTNGP05.phx.gbl...
i have a web page using frameset split into few pages. And I want to
generate one page of HTML code and send it through email. My question is
have to generate a HTML page using asp?
Thx very much.


Sep 18 '06 #5
ash wrote on 18 sep 2006 in microsoft.public.inetserver.asp.general:
i want to use programming to generate a html source code from a my
webpage that i can cut&paste, and mail to other ppl.
ppl? This is not SMS.
Then the recevier
receiver ;-(
will get a image of that website after he opened up that mail. How
could i do that? many Thx.
You could read the html rendered output of your own page
off the web with CreateObject("MSXML2.ServerXMLHTTP"):

<http://classicasp.aspfaq.com/general...contents-of-a-
remote-web-page.html

and the send it in an email with CDO or Jmail or alike.

<http://classicasp.aspfaq.com/email/how-do-i-send-e-mail-from-asp.html>
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Sep 18 '06 #6
..

Sep 19 '06 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Mike | last post: by
9 posts views Thread by Fred | last post: by
1 post views Thread by Tim:. | last post: by
4 posts views Thread by Dehaibe François | last post: by
2 posts views Thread by Nick | last post: by
7 posts views Thread by Rathtap | last post: by
1 post views Thread by A Traveler | last post: by
reply views Thread by ward | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.