Gonzalo Paniagua Javier wrote:


>> 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.


Yeah, probably not. view state is probably better. I'm just trying to get it to work. I'll take a look at the example.


>> >> > >>>>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.


Ok, here it is - I get it when the page loads. System.NullReferenceException: Object reference not set to an instance of an object in <0x00045> StudentsPage:Page_Load (object,System.EventArgs) in <0x00069> (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs) in <0x00086> System.Web.UI.Control:OnLoad (System.EventArgs) in <0x00024> System.Web.UI.Control:LoadRecursive () in <0x00198> System.Web.UI.Page:InternalProcessRequest () in <0x000c2> System.Web.UI.Page:ProcessRequest (System.Web.HttpContext) in <0x002eb> ExecuteHandlerState:Execute () in <0x00084> StateMachine:ExecuteState (System.Web.HttpApplication/IStateHandler,bool&)




>> >> -Gonzalo >> >> >> _______________________________________________ >> Mono-list maillist - [EMAIL PROTECTED] >> http://lists.ximian.com/mailman/listinfo/mono-list >> >> >>

_______________________________________________
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to