|
| having "using" directives in webconfig file so each file doesn't have to have them? |
 |
Thu, 3 Apr 2008 23:20:05 +0000 |
At the top of all my .cs (c# class pages that are the code behind of all my
.aspx pages) pages I'm using a ton of these "using" statements (kept
list short for this post):
using System;
using System.Data;
.....
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
Is there some way to apply them across all my .cs pages? In my global.asax or
webconfig? Thanks.
|
| Post Reply
|
| Re: having "using" directives in webconfig file so each file doesn't have to have them? |
 |
Thu, 3 Apr 2008 23:29:16 +0000 |
I asked that very question a while back.
Apparently there isn't.
|
| Post Reply
|
| Re: having "using" directives in webconfig file so each file doesn't have to have them? |
 |
Thu, 3 Apr 2008 23:29:39 +0000 |
sure:
check this:
http://msdn2.microsoft.com/en-us/library/ms164642.aspx
http://www.west-wind.com/WebLog/posts/2287.aspx
|
| Post Reply
|
| Re: having "using" directives in webconfig file so each file doesn't have to have them? |
 |
Thu, 3 Apr 2008 23:35:35 +0000 |
There's an example here...
http://www.4guysfromrolla.com/articles/121207-1.aspx
HTH
Greg
|
| Post Reply
|
| Re: having "using" directives in webconfig file so each file doesn't have to have them? |
 |
Thu, 3 Apr 2008 23:40:28 +0000 |
That rocks! Thank you!
|
| Post Reply
|
|
|
|
|
|
|
|
|
|