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

ASP Code doesn't compile

Status
Not open for further replies.

MTGMAN64

Technical User
Nov 1, 2000
7
US
I'm not sure what I'm doing wrong, but any ASP code I put in the source code doesn't publish. For instance, I might use a Date function between <% %>. You can see it in the source code, but when you try to bring it up in Internet Explorer it doesn't show at all. Currently I have IIS 3.0, and Internet Explorer 5.0. I'm thinking I don't have IIS configured properly to display ASP Code. Any help would be appreciated, Thanks!
 
you will never see ASP in the source of the web site:

1.browser requests page
2.server checks for asp code and processes it, returning
normal client-side HTML,script,etc.
3.server sends page to browser

anythign between <%%> will not show up in the final page

jared@aauser.com
 
Is your question that you want to see the source code, or that you want to see some output? I presume you want to see some output from your code.

To get some output, you have to explicitly tell the parser to output something. eg:

<% Now() %>

...does nothing. It calculates Now() but does nothing with it. You need to use the Response object to write to the document:

<% Response.Write Now() %>

... or use the shorthand notation:

<%= Now() %>

Hope this helps

K
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top