Article ID: 911793 - Last Review: December 6, 2006 - Revision: 2.3 How to enable the "Option Strict" and "Option Explicit" statements in Visual Basic applicationsINTRODUCTIONThis article describes how to enable the Option Strict and Option Explicit statements in Microsoft Visual Basic applications for code-behind files and files that
are contained in the App_Code folder. MORE INFORMATIONTo enable the Option Strict and Option Explicit statements in the code-behind files and files that are contained in the App_Code
folder of a Visual Basic application, override the compiler configuration in
the system.codedom section of the Web.config file for the application. To do this,
add the following code to the Web.config file: REFERENCES
For more information about how to create the Web.config file for an ASP.NET application, click the following article number to view the article in the Microsoft Knowledge Base:
815179
(http://support.microsoft.com/kb/815179/
)
How to create the Web.config file for an ASP.NET application
| Article Translations
|
Back to the top
