[Mono-list] ASP.NET object troubles

Gonzalo Paniagua Javier reply.to.the.list.iam.suscribed@notexists.ximian.com
Sun, 12 Dec 2004 16:29:23 -0500


On Sun, 2004-12-12 at 12:28 -0600, Raul Carolus wrote:
> Greetings all.
> 
> I have a aspx, with codebehind, that i'm trying to get tabcontrol-like 
> behavior on.  I have everything working, except for the visual effects 
> to determine what tab is selected.
> 
> I'm using buttons as the tabs, and setting their CssClass to indicate 
> whether the button is selected or not.  I use a Session variable to 
> store what button is selected.

Using Session is not the most appropiate for that. You can also take a
look at how this is done in xsp/test/tabcontrol2.aspx.

> 
> However, when the page loads or does a postback,  I'm always getting 
> null references when working with the buttons.

It would help if we can also see the stack traces you're getting.

-Gonzalo