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

I created a test .asp page but nothing shows up

Status
Not open for further replies.

DougP

MIS
Dec 13, 1999
5,985
US
Is that because there are not front page extensions?
Code:
<%
MyVar = "Hello world!"
%>
<HTML>
<BODY>
<%=MyVar%>
</BODY>
</HTML>
I just see a blank page
this page is stored on a folder on the server
I have VS WEB developer 2005 express which created the folder. I created the page in Notepad though.

DougP, MCP, A+
 
What's the name of the page? What web server are you running?

Lee
 
name of page is test.asp
I'm not running a web server, I guess that's my problem?
Its just a folder on our file server.
Can I make it work or what do I need to do?

DougP, MCP, A+
 
Hello....you need to do this below. Hope this helps.

Code:
<%
MyVar = "Hello world!"
%>
<HTML>
<BODY>
response.write <%=MyVar%>
</BODY>
</HTML>
 
Sorry...disregard my last post. You can do something like this but you will need to copy the ASP file into your Inetpub directory if you are running Personal Web Server or into your Web directory on your server. My last post will also work if you do it with this line changed. Sorry about that. Wasn't thinking....
Code:
<%response.write MyVar%>
Code:
<%
MyVar = "Hello world!"
%>
<HTML>
<BODY>
<%=MyVar%>
</BODY>
</HTML>

JP
 
Sorry for another post but the reason you cannot run this on your laptop is because it is a server side script in your ASP. It has to be ran on the Server and if you do not have a web server then it will not work. Below is a good link on exactly what you are doing.


JP
 
Ok I went to our server and created a new WEB site under IIS in the Server Management program.
I have ASP.NET 2.0.50727 active on it as well.
How do I call a page from my browser
the .ASP pages still do not seem to work correctly

TIA




DougP, MCP, A+
 
Try using the URL 127.0.0.1/foldername/test.asp. If test.asp is in the folder, delete the foldername from above, otherwise insert the correct folder. You won't be able to just click on the file to run it, you'll have to load it in the browser by typing in the URL.

Lee
 
127.0.0.1 is your local machine and that is why trollacious gave you that to use. You probably new this already but just in case this is the reason. You can now do this.

This assumes you have the test.asp in the folder.


This one assumes you have placed test.asp in a folder under the folder. This is as trollacious suggested.


Let us know if it is working for you now. If now check using Explorer in the folder where the test.asp is and see what the type shows for the test.asp page. Make sure it says "Active Server Page". If not, then you may have other issues.

JP
 
or...sense I have a feeling this one is going to go realllll long.

Go back to your server. Open IIS again. Select the web site (or did you mean virtual directory). In the right panel right click test.asp. Select Browse.

If you are remote. Use the server name or IP insterad of locahost/127.0.0.1

Any further questions on this topic please refer to forum41 or google on setting up a virtual directory on IIS and running active server pages


____________ signature below ______________
General FAQ faq333-2924
5 steps to asking a question faq333-3811
 
Finally clicked. I thought your handle looked familiar.

I recall several posts here and other forums. Very good ones at that. and the RT.

and
How to successfully connect to an Access database faq333-976
Send form results to SQL Server and E-mail them too. faq333-113

So I'm confused DougP.


____________ signature below ______________
General FAQ faq333-2924
5 steps to asking a question faq333-3811
 
believe it or not I forgot how to do that, I have not used web stuff since then. that was 5 years ago. getting old I guess.
that job was connecting to a WEB site, this is new job at a new company connecting to our local server.

DougP, MCP, A+
 
OK johnpayback and or trollacious
if I key in which is the IP for the server the domain controller.
it brings up the default "companyweb" which is part of Small Business Server 2003, the generic site.

it would seem that I cannot create another WEB site and use it, since it will not let me use port 80. port 80 is being used by the companyweb and has an ip of 192.168.1.3
I keyed in port 7656 for my site and ip is (all unassigned)

hope this makes sense
I really don't want to mess with the companyweb by adding a link to my site.



DougP, MCP, A+
 
So make a subdirectory and put your stuff in there, then access it with the IP address and subdirectory. 192.168.x.x is typical for internal IP addresses. Does your server actually have a web server running on it? If your answer is STILL "No", then what do you have running to interpret the ASP scripting and spit out the final HTML?

Lee
 
Try...


Include the PORT number explicitly within the URL in order to gain access to the website. If the PORT is not included, then the default PORT for HTTP requests will be used (which is PORT 80).

Hope this helps.
 
Another thing....

Since you named the page *test.asp*, you're going to have to explicitly request it within the URL, unless you configured the website's default document.


If the *test.asp* is not in the root folder for the website, you'll need to include the folder name as well, example;


Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top