473,322 Members | 1,911 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,322 software developers and data experts.

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 5214
<%
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Mike | last post by:
I am just wondering if it is possible to save a HTML string from PHPs? Let me elaborate more on what I mean. If you do <?php include 'abc.php' ?> //abc.php <html>
9
by: Fred | last post by:
Hi, I'm sure there are a bunch of them, but googling just returned full-fledged CMS that require a DBMS and generate dynamic pages. I'd just like a script that would 1. look in a directory...
1
by: Tim:. | last post by:
Hi Can someone tell me how I generate a new XML file that I can then use with an XSLT file. I am trying to use an XML file generated from Microsoft Project or even better generate an XML file from...
4
by: Dehaibe François | last post by:
Hi, I'm making a program which uses a scanner which is enable to can multiple pages. I want to save all the scanned images into a PDF FILE. Does exist an API which can generate PDF FILE in...
2
by: Nick | last post by:
Hi all, I'm about to embark on a new project and can't decide quite how to do it. In summary, I have a database whose data I want to use to create html pages for a website. The website will just...
7
by: Rathtap | last post by:
I want to write a C# application (lets call it Generator) that will receive an argument(patient account number) and dynamically generate a series of linked HTML files (claim information, payments,...
1
by: A Traveler | last post by:
Hello, i am having this problem. The exact error message is: "Unable to generate code for a value of type 'System.Web.UI.Page'. This error occurred while trying to generate the property value for...
0
by: ward | last post by:
Greetings. Ok, I admit it, I bit off a bit more than I can chew. I need to complete this "Generate Report" page for my employer and I'm a little over my head. I could use some additional...
1
by: Daniel Hilgarth | last post by:
Hello, I am currently trying to use XSLT for the creation of multiple HTML-files from a single XML-File. This HTML-files need to have links to each other. The following information might be...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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...
1
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: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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: 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
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.