Hi,

I was wondering if it is possible to view the asp codes of any 
websites. I know 'view source' in IE can only view HTML codes and I 
already have a page in my site that can view the asp codes of my own 
pages. Is there a way to view the asp codes of 'other' sites?

The page in my site that I use for others to view my asp codes. Is 
there a way to modify; is there another code that will allow me to 
view the asp codes of 'other' sites.

Thanx alot!!

<%
' Target page to be read
page_to_read="mypage.asp"

' Create a server object
set fso = createobject("scripting.filesystemobject")

' Set the path to document to be read
set act = fso.opentextfile(server.mappath(page_to_read))

' Read the contents of the document to the
' read_text variable

read_text = act.readall

' Close the server object
act.close

' Write the inputted text out to the browser
' and html encode it to display as source
' enclosed in <pre> tags to display as read
response.write "<pre>" & server.htmlencode(read_text) & "</pre>"
%> 








 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to