Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

User Control on ASP.net

Hi,
I created a user control and I try to drag it onto an ASP.net page. I added
the declaration at the top of the ASP page, but it keeps giving me the error
that object reference not instanced. If you need an example I can provide.
Thanks in advance.
Mark
[287 byte] By [Mark] at [2007-11-9 17:50:32]
# 1 Re: User Control on ASP.net
You need to declare a variable in your CS file of the type you created;
unfortunately you have to do this every time you use user-control

"Mark" <someone@somewhere.com> wrote in message
news:3ed62897$1@tnews.web.dev-archive.com...
>
> Hi,
>
> I created a user control and I try to drag it onto an ASP.net page. I
added
> the declaration at the top of the ASP page, but it keeps giving me the
error
> that object reference not instanced. If you need an example I can
provide.
> Thanks in advance.
>
> Mark
>
Wesam at 2007-11-11 23:16:47 >