Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

view ASP code in Browser ???????

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
i need to view the ASP code in a browser....
how can i do it ?
what shell i add to my code ?

 
U need to add to your asp page a variable witch stores all your code and the Response.Write variablename
MyAsp.asp
<%@ Language=VBScript %>
<%
'code here
Set fso = Server.CreateObject (&quot;Scripting.FileSystemObject&quot;)
fileName=Server.MapPath(&quot;MyAsp.asp&quot;)
Set file = fso_OpenTextFile (fileName)
varAspCode=file.ReadAll
%>
<textarea rows=12 cols=50><%=varAspCode%></textarea> ________
George, M
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top