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

(1) adovbs.inc and (2) asp page execution

Status
Not open for further replies.

Coder7

Programmer
Oct 29, 2002
224
US
Hello everyone!

I'm researching an application problem and have two basic questions:

1. Does it matter where on my asp page I put the
<!-- #include file="Includes/Adovbs.inc" --> on the asp page? (i.e. does it matter if it's physically located on the asp page before the place or after the place on the asp page where I call the vbscript function that makes the call to the database?) and
2. How is an asp page executed/processed?

Thanks for any help understanding this. I think my lack of this understanding might be causing/contributing to the problems I'm having.

 
Question #1.

It needs to be located before you write the VBscript. ASP pages are handled from top down. Meaning it starts at line one and goes to the end. There might be things like loops or functions that bounce it off differently but top down is for the most part how things are done.

Question #2

ASP pages are Active Server Pages. They are processed at the webserver. If you are running a Microsoft Web server you should already be setup to handle ASP. If you are running an Apache or any other type of Webserver you might have to install some components.

Let me know if you have any other questions.

Cassidy
 
Thanks, Cassidy, for the quick responses. All is being run on Microsoft.

I wasn't sure how to ask question #2 which I think you answered in question #1 - the pages are handled/processed from the top down.

My long version of the question is : since I currently have the adovbs.inc include on the asp page AFTER I make the call to the vbscript function that makes a call to the database, is it possible that the db call is having a problem/returned bad values because some ado variables being used with the db call are not defined until the include is reached further down the page?

Thanks, again, for any insight here.
 
It really depends on what methods you are using of ADO. Do you have any error messages or possibly a look at the code you have written? Is there a reason you need to have it loaded after you make the call to the function?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top