Re: insert message with overrides

From: TJS (nospam_at_here.com)
Date: 05/06/04


Date: Wed, 5 May 2004 22:57:26 -0700

it was the HttpContext thingy

thanks

"kashypa" <lohithn@aztec.soft.net> wrote in message
news:071CF3F9-8541-4C8B-871F-72E806EE6208@microsoft.com...
> Hi,
>
> I assume the code that you have sent is of a custom control that you are
trying to build.
>
> So as you know the custom controls gets bundled in to a separate Assembly
and to use them you have to register them
> in the page that you use it.
>
> So this assembly knows nothing of the HttpContext.
>
> Try doing out this.
>
> 1> Include the namespace System.Web.
>
> 2> When you want to access the Application variables use the following
> HttpContext.Current.Application(VarName)
>
> i hope this should solve your problem.
>
> Let me know on this