Re: Accessing functions defined in Global.asax

From: Janaka (janaka_at_magicalia.com)
Date: 02/04/04


Date: Wed, 4 Feb 2004 14:44:40 -0000

Hi Anjali,

If your going to make global functions available to your application its
probably better to consolidate all your code into a DLL, stick it in your
/bin directory, and then reference it from your ASP.NET pages.

"Anjali Lourda" <anjali@panteq.com> wrote in message
news:a30a0a75.0402040153.78025617@posting.google.com...
> Hi,
> I have defined a function in global.asax file. Could somebody please
> tell me how i am supposed to call that function from the other files
> of the same project.
> Global.asax
> public function getName() as String
> dim name as string
> name = "Abc"
> return name
> end function
>
>
> myfile01.aspx
> 'How do I call that function from this file. Am I supposed to import
> something?
>
>
> Thanks in advance for this help
> Anjali