Ask a Question related to ASP.NET Building Controls, Design and Development.
-
Don #1
Control not maintaing viewState and PostBack not firing event.
I created a nWeb Custom Control that inherits from WebControls.Panel
and add a CheckBoxList to this control. I can't seem to get this
control to maintain it's viewState. I don't think I need any additonal
code since I'm using existing controls. Is this correct?
In the past I've had to override LoadViewState and SaveViewState but
that is when I have a more complex control.
Also, I set AutoPostBack to true for the CheckBoxList control and now
when I make a selecttion I get a postback put it does not seem to be
firing the SelectedIndexChanged event. I put a breakpoint in the
method that handles SelectedIndexChanged for that control but I never
get to this line.
Thanks,
Don
Don Guest
-
Firing user control event from parent control
Hi, actually you don't need events. all you need is internal or public function exposed by your inner user control(UCSub). you can call that... -
Composite Control - Event not firing in child control
Hello: I am experiencing an issue where I have a composite control (TestOuter) composed of more composite (TestInner) controls. When I am... -
Sort not firing PostBack event using Dynamic Columns
I am having a problem with the DataGrid control and sorting, and have found it's realted to if you use dynamic columns or not. If I set the columns... -
Forcing Page Postback at END of event (while retaining viewstate)
I have a page that reads values from an XML file to display to the user. The page also has a control panel that allows administrators to update the... -
Dynamic Control Event Not Firing Help
In my ASP.NEt codebehind, I declare a public var for a DataGrid. Then in the TextChanged event handler for a TextBox, I create a <div> tag, stuff... -
mr fox #2
RE: Control not maintaing viewState and PostBack not firing event.
It sounds as though you may have a control in the page hierarchy that doesn't
have an ID set so that your control cannot be found on postback due to a
higher control that doesn't have an ID set being given a different ID on
postback than before.
Regards,
mr fox.
"Don" wrote:
> I created a nWeb Custom Control that inherits from WebControls.Panel
> and add a CheckBoxList to this control. I can't seem to get this
> control to maintain it's viewState. I don't think I need any additonal
> code since I'm using existing controls. Is this correct?
>
> In the past I've had to override LoadViewState and SaveViewState but
> that is when I have a more complex control.
>
> Also, I set AutoPostBack to true for the CheckBoxList control and now
> when I make a selecttion I get a postback put it does not seem to be
> firing the SelectedIndexChanged event. I put a breakpoint in the
> method that handles SelectedIndexChanged for that control but I never
> get to this line.
>
> Thanks,
> Don
>
>mr fox Guest



Reply With Quote

