AllExperts > Experts 
Search      

Active Server Pages Programming (ASP)

Volunteer
Answers to thousands of questions
 Home · More Questions · Answer Library  · Encyclopedia ·
More Active Server Pages Programming (ASP) Answers
Question Library

Ask a question about Active Server Pages Programming (ASP)
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Jeff Allen
Expertise
I can answer basic to intermediate questions related to Classic ASP.I can answer Intermediate to Advanced questions CSS& HTML, and basic questions about JavaScript and Ajax. I can also answer questions related to web page accessibility under US Section 508.

Experience
I have 8 years experience with HTML. I have been developing in ASP, VBScript and CSS for two years each. I also currently work as web developer.

Organizations
IWA-HWG

Education/Credentials
I have a BA in English with minors in Web Design and Scientific and Technical Writing

 
   

You are here:  Experts > Computing/Technology > Business Software > Active Server Pages Programming (ASP) > .asp pages and .inc file

Topic: Active Server Pages Programming (ASP)



Expert: Jeff Allen
Date: 8/9/2006
Subject: .asp pages and .inc file

Question
Jeff, I created a member login (FrontPage) using .asp files as laid out in http://support.microsoft.com/kb/321439

The only problem I'm having is when trying to load the logon.asp page.  The bars across the bottom of my screen show the page is loading, but the page never loads (the web address in the lower left of my screen just flashes).  I'm thinking it has something to do with the .inc file.  All server extentions are loaded on the web server, so that isn't the problem.  I've created sample .asp pages which display time, date, a message, etc., and those work fine.  And I have checked, double-checked and triple-checked my code.

If you would like to see the problem, follow this link:  http://www.fairhopeyachtclub.com/newdefault.asp  Click on "secure page".

Any help you could provide would be greatly appreciated.

Answer
I went to the secure page you sent me to and the error I am getting says there is an include file missing. SOmetimes when debugging .asp pages it helps in IE to go to Tools/Internet Options/ and uncheck show friendly error messages.

Here's the error message I am seeing:

Active Server Pages error 'ASP 0126'

Include file not found

/logon/secure.asp, line 2

The include file '/logon/_private/logon.inc' was not found.

which means this logon.inc file is not found in that folder or at that location, once you put it there all should be well with the world.

Are you using #include file or #include virtual to include files in your pages? I tend to opt for include virtual like so:

<!-- #include virtual="/folder1/folder2/file.inc" -->

This way it reads like this starting at the '/' says Go to the root of the site then find a folder named "folder1", in that folder find a folder named "folder2" and in that folder find a file named "file.inc."

One piece of advice though, .inc files are just text files anyone with a browser can read just by going to that location. So if your path to your include files was http://www.mysite.com/includes/myfile.inc and I typed that in the address bar of my browser I could read your .inc files as plain text. This is bad especially if you have paths to the databases or logons and passwords for thsoe databases located in those files.

I personally never use .inc files for this, instead I save all my include files as .asp as they must be processed by the server before display and if you tried to read their contents it wouldn't be available through the browser or view source.

Let me know if this works or if you have more questions.

Add to this Answer    Ask a Question



  Rate this Answer
   Was this answer helpful?
Not at allDefinitely              
   12345  

     
About Us | Advertise on This Site | User Agreement | Privacy Policy | Help
Copyright  © 2008 About, Inc. About and About.com are registered trademarks of About, Inc. The About logo is a trademark of About, Inc. All rights reserved.