G
Guest
keywords: asp.net master page rubbish
I have written a custom control. The control is a simple html Tab menu
control. The control inherits from DataBoundControl and implements
INamingContainer, IPostBackEventHanlder and IPostBackDataHandler. The control
is engineered to use a hidden client-side input textbox which stores a
selected index variable to enable the IPostBackDataHandler to determine a
change in tab and trigger a redraw of html. I am also controlling the
necessary viewstate to support the selected index and data set variables. My
control works fine and I am able to trap the server-side events for
OnTabClick and re-draw my control on DataChanged event. My problems arise
when my control is added to a Master page and in the event handler I redirect
to a Content page. Once I do this none of the control’s event seem to be
being fired, although the postback event handler must be being executed as
the content page is being merged!!! Crazy!!!. Neither the control’s
LoadPostBackData or RaisePostBackEvent methods are executing and I have tried
everything to figure out why this is the case and have now spent nearly two
weeks re-writing the custom control’s methods. Please, please, please,
Microsoft, help me figure this master page madness out as I am completely
stuck!!!
I have written a custom control. The control is a simple html Tab menu
control. The control inherits from DataBoundControl and implements
INamingContainer, IPostBackEventHanlder and IPostBackDataHandler. The control
is engineered to use a hidden client-side input textbox which stores a
selected index variable to enable the IPostBackDataHandler to determine a
change in tab and trigger a redraw of html. I am also controlling the
necessary viewstate to support the selected index and data set variables. My
control works fine and I am able to trap the server-side events for
OnTabClick and re-draw my control on DataChanged event. My problems arise
when my control is added to a Master page and in the event handler I redirect
to a Content page. Once I do this none of the control’s event seem to be
being fired, although the postback event handler must be being executed as
the content page is being merged!!! Crazy!!!. Neither the control’s
LoadPostBackData or RaisePostBackEvent methods are executing and I have tried
everything to figure out why this is the case and have now spent nearly two
weeks re-writing the custom control’s methods. Please, please, please,
Microsoft, help me figure this master page madness out as I am completely
stuck!!!