Tuesday, March 13, 2012

Set Option Strict on for whole web site

Where can I set Option Strict On so it applies to the whole web site? It was not set On by default when I started the project but I want to turn it on now and I can't find a place to set it and forget it.

By that I mean currently I have to set it on in each code behind page and I don't want to have to do that anymore.In VS2005 it comes on by default. You must be using VS2003.

To set it on VS2003, you can do that from the IDE directly.

Tools -> Options -> Projects -> VB Defaults -> Option Explicit ON

HTH
HoraShadow

0 comments:

Post a Comment