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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

views asp source code while submitting asp script in IE

Status
Not open for further replies.

venusadora

Programmer
Jun 23, 2003
7
AE
Hai,

I am using IIS 5.1 in Win xp Prof OS. I tried to run a simple asp file thru' IE giving But it displays asp source code instead of the actual result. My file is saved in a folder in folder and my web server is running. Please help me.
 
have you got the Script delimiters (<% your code here %>) in the ASP page?

Post your complete code for the ASP page if this isnt the problem.

Tony
reddot.gif WIDTH=500 HEIGHT=2 VSPACE=3

 
Thanks for the reply.
This is the asp code:

<html>
<head>
<title>Simple Tag Pages</title>
</head>
<body>
<h1>Welcome to the clock page</h1>
<p>It is now: <% = Now() %></p>
</body>
</html>

I am able to open But it doesn't work for any other asp files.
 
Is folder a virtual web? If so is it allowed to execute scripts? Check your IIS settings.

Wow JT that almost looked like you knew what you were doing!
 
FesterSXS-The output in the browser screen is the same as source code:

<html>
<head>
<title>Simple Tag Pages</title>
</head>
<body>
<h1>Welcome to the clock page</h1>
<p>It is now: <% = Now() %></p>
</body>
</html>

pixl8r-I am a beginner in ASP programming and don't have much idea about the IIS Settings. In the IIS, the setting is like this:

Default website properties>Home Directory>
Execute permissions: Script only
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top