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!

beginner

Status
Not open for further replies.

at51178

Technical User
Mar 25, 2002
587
US
Hey guys

I just started teaching myself ASP for the past hour or so but for some reason I can not view the webpage after I save it in a text editor.

fyi I am using windows xp professional

I understand that I have to install information services, which I did and I have to create a webpage in the c:\inetpub\ folder which I also did.
I even when to the control panel in inforamtion services and created a virtual directory. but I am not sure if I have to put the code in a script ending in .asp or keep the code in the webpage can some one help a newbie will be much appriciated.

Thanks a lotttttttttt


Remember what goes around comes around
 
yes all the pages that you include asp (anything in the <% %>) in must be renamed with the .asp ext. when you view the pages are you opening them via browse in IIS Hope that helps
admin@onpntwebdesigns.com
 
ok I did that but what next

do I link it from my html document to the asp document or do I have to do anything special
 
I didn't use the .asp ext but I did that now how do I link it
 
link what? your html code is within the page also correct?
Hope that helps
admin@onpntwebdesigns.com
 
OK...this is how it works jsut for some clarification
this is a example of a asp page
<html>
<body>
<%
Response.Write &quot;Hello!&quot;
%>
</body>
</html>
you save this as hello.asp
place it in the of IIS
open IIS and right click the page and scroll to browse and click. this will open the browser with the page. Hope that helps
admin@onpntwebdesigns.com
 
Okay onpnt

I did exactly what you told me and it worked I understand that part I was able to see the page.

but do I have to always go to my informatioin services and right-click on the file in order to see it.

how do I just view it like any ordinary html file
 
you have to test ALL asp pages from IIS. Other wise you'll need to upload them to a server. Sometimes if all you need to do is have database functions etc.. that so not change the format of a page you can wait until the html code is in place and then add the needed asp and change to the .asp ext. Hope that helps,
Ted
admin@onpntwebdesigns.com
 
ok
But I now know how to open it through Information Services but what I would like to do is open it like I would open any html file.all the code for html is on the page already and so is the asp code and I did change the file ext to .asp and I am able to view it but I would like to view it by putting it on my desktop for instance and just click on it and have it open up like i open up a webpage.


thanks for all your help

 
not possible. The closest thing you can get here is to put a short cut to IIS on your desktop for easier access. The page must be in IIS in order to work properly. Hope that helps,
Ted
admin@onpntwebdesigns.com
 
ok now I completeley understand how IS works thanks for your time and patients.
 
anytime! Hope that helps,
Ted
admin@onpntwebdesigns.com
 
Maybe I missed something here?

You should be able to access your site/pages via your web browser by navigating to &quot;localhost/page&quot;.

i.e
If you name your page default.asp then you can access it by simply
You would normally name your home page default.asp or index.asp as your server typically displays one of those when you don't specify a file.

Therefore when you access your website at the page that is actually displayed is default or index. The page could also be .htm or anything else for that matter. IN IIS you can specify the name of your default page. But as shipped it is set to display default.

Hope this helps, Jim
 
yes you can also reach your asp pages for testing with the local path, good tip!
I think the main question was having the page anywhere on the machine and simply opening it as if any other .htm page. Hope that helps,
Ted
admin@onpntwebdesigns.com
 
the first steps I wanted to have taken were to ensure that IIS or the page was set up properly also. Doing it this way will always leave no questions if the page comes up fine. hence the hello example Hope that helps,
Ted
admin@onpntwebdesigns.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top