Atlanta Custom Software Development 

 
   Search        Code/Page
 

User Login
Email

Password

 

Forgot the Password?
Services
» Web Development
» Maintenance
» Data Integration/BI
» Information Management
Programming
  Database
Automation
OS/Networking
Graphics
Links
Tools
» Regular Expr Tester
» Free Tools

Use Global.asa Metadata directive to access type libraries

Total Hit ( 2841)

Rate this article:     Poor     Excellent 

 Submit Your Question/Comment about this article

Rating


 


Most ADO statements require special constants to be passed as arguments to method calls, as in:

Click here to copy the following block
rs.Open "Authors", cn, adOpenForwardOnly, adLockReadOnly, adCmdTable

The above line is surely more readable than:
  rs.Open "Authors", cn, 0, 1, 1

but for the first line to work correctly you must, of course, define all the ADO constants you need. When working with ASP under IIS4 you have no choice, but defining all these values with a series of Const statements. Preparing all these Const statements is a tedious work, so must ASP developers prefer to include the ADOVBS.TXT file in all the ASP pages that work with ADO. This is quite a large file, so you might end up adding a lot of statements that you don't actually need in the page at hand. This causes an overhead that should be avoided.
IIS5 introduced a better way to deal with such pre-defined constants. You can make all the constants defined in a type library available to all the ASP pages in an application by adding a special METADATA tag in Global.asa. There are two forms of the METADATA tag, one that refers to the type library by pointing to its file:



and the other that refers to a type library by its GUID:





Submitted By : Nayan Patel  (Member Since : 5/26/2004 12:23:06 PM)

Job Description : He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting.
View all (893) submissions by this author  (Birth Date : 7/14/1981 )


Home   |  Comment   |  Contact Us   |  Privacy Policy   |  Terms & Conditions   |  BlogsZappySys

© 2008 BinaryWorld LLC. All rights reserved.