View Full Version : write source code
ekrub
06-26-2003, 11:08 AM
Is there a way that I can write some asp code to write the source code for a web page?
nissim
06-26-2003, 06:09 PM
here you find complit application for it
http://www.2enetworx.com/dev/projects/hiliter.asp
Bullschmidt
06-27-2003, 12:49 AM
Perhaps these resources will give you some ideas:
Buildapp040101 - Instant web/database application builder by Michael Brinkley - 6/13/2001
http://www.aspalliance.com/mbrink1111/default.asp
FileSystemObject
http://www.4guysfromrolla.com/webtech/faq/faqtoc.shtml#FileSystemObject
webster252003
06-30-2003, 04:58 AM
The FileSystemObject can read the source of any page.
<%
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Set objTS = objFSO.OpenTextFile (Server.MapPath("anything.asp"))
sourcecode = objTS.ReadAll
Set objTS = Nothing
Set objFSO = Nothing
Response.Write "<pre>" & Server.HTMLEncode(sourcecode) & "</pre>"
%>
vBulletin v3.0.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.