Re: global functions?
- From: "Peter Rilling" <peter@xxxxxxxxxxxxxxxxxx>
- Date: Fri, 13 Jan 2006 06:42:16 -0800
I think the other responses are tyring to make things more complex. Many
refer to the physical location such as another DLL or the app_code folder.
Really, just make another class and create static methods.
public class Utilities{
public static MethOne(){
}
public static MethTwo(){
}
}
Then you can call the methods from anywhere by invoking Utilities.MethOne()
and so on.
"Chattanooga" <rowan@xxxxxx> wrote in message
news:etses1tbunbj121c7crffh1q23b9ponm5b@xxxxxxxxxx
> hi all
>
> just a quick one, where can i put functions that all asp.net pages
> within an application can call? i tried globla.asax.vb, but that did
> not work.
>
> TIA!!!
>
> Chris
.
- References:
- global functions?
- From: Chattanooga
- global functions?
- Prev by Date: Re: Help on LinkButton vs PushButton ??
- Next by Date: Re: Asp.net 2.0 caching and images
- Previous by thread: Re: global functions?
- Next by thread: Problems running site on IIS 5.1
- Index(es):