Panel Control "Object reference..."
am 23.01.2008 16:59:36 von ge0193387
I'm at my wits end trying to figure out this stupid error.
Now every other time I've used a panel I can reference it in my
codebehind without saying me.pnl = new Panel() but with this
particular instance I have to. Also along with this problem I add a
control to this panel and it doesn't show on the page, only the Labels
I added manually.
Re: Panel Control "Object reference..."
am 23.01.2008 19:57:13 von Mark Fitzpatrick
Are you using codebehind? If so, check to make sure that your codebehind
definition inthe page is pointing to the right filename and check to make
sure that the inherits attribute in the page directive exactly matches the
one in codebehind. This sort of behavior can happen when you have some odd
disconnect between the page, the codebehind, and/or the designer file.
--
Hope this helps,
Mark Fitzpatrick
Microsoft MVP - Expression
"cfps.Christian" wrote in message
news:2983122d-31b8-4a37-a468-ebc7bbbba9bc@e4g2000hsg.googleg roups.com...
> I'm at my wits end trying to figure out this stupid error.
>
>
>
>
>
>
>
>
> Now every other time I've used a panel I can reference it in my
> codebehind without saying me.pnl = new Panel() but with this
> particular instance I have to. Also along with this problem I add a
> control to this panel and it doesn't show on the page, only the Labels
> I added manually.