asp generate HTML

A

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.
 
S

Steven Burn

<%
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!
 
A

Anthony Jones

ash said:
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.
 
A

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 said:
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
 
E

Evertjan.

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/how-do-i-read-the-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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,139
Messages
2,570,805
Members
47,356
Latest member
Tommyhotly

Latest Threads

Top