Re: global functions?

Tech-Archive recommends: Fix windows errors by optimizing your registry



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


.


Quantcast