Discussion Locked

ASP Question

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am trying to learn how to create ASP pages within a Windows XP Professional environment. I just created a very simple, "Hello World" style ASP page. However, when I open up the ASP page in Internet Explorer, the scripted content that should be displayed is nowhere to be seen. Why is this the case?

---For example, the following source code---

<%
intresult = 7 + 6 - 1
strthesum = "seven plus six minus one"
%>

The result of calculating <% = strthesum %> is <% CStr(intresult) %>

---shows up as the following in IE---

The result of calculating is

5 replies

by madestroitsolutions

In order for your ASP code to be executed, it must come from a web server. In other words, as the word suggests, it must be "served". The web server is the software that receives the requests for web pages, and in return sends the content. ASP is a filter installed on the web server. So if you want your ASP code to execute, you have to install a web server on your computer, unless you have access to a server. After that, you can execute your page by putting it on the default folder given by your settings on the web server, depending of what kind of server you use. In other words you put it where the server can find it. To access your page you type http://127.0.0.1/ because that's every computer's default local address, plus the folder (if you have put it into one) plus the page name, so:

http://127.0.0.1/mypage.asp or;
http://127.0.0.1/myfolder/mypage.asp

I hope that helps. good luck!

This discussion is closed to new replies.