I
irislogic_1
Hi
We have developed a User Control in ASP.Net, which includes a DataList. In
the ItemTemplate of DataList, we are using Custom Radio button.
The CustomRadio Button inherits RadioButton, implements IPostBackDataHandler
and has an EventHandler CustomCheckedChanged.
At Runtime, DataList is binded with DataSource. During OnItemCreated, we are
registering CustomCheckedChanged event for each CustomRadioButton Created and
making the AutoPostBack property true.
The problem we are facing is, onPostBack the CustomCheckedChanged Event is
not firing.
We have created a TestApplication, with the same setup as in our production
application. To our surprise the event is firing and it is working fine.
The framework of our TestApplication and the Production is same. The only
difference is that in the production, we are having many more UserControls.
Also we have enabled the Viewstate of the controls, still OnPostBack
__VIEWSTATE is not having any value. Can anyone help us on this.
We have developed a User Control in ASP.Net, which includes a DataList. In
the ItemTemplate of DataList, we are using Custom Radio button.
The CustomRadio Button inherits RadioButton, implements IPostBackDataHandler
and has an EventHandler CustomCheckedChanged.
At Runtime, DataList is binded with DataSource. During OnItemCreated, we are
registering CustomCheckedChanged event for each CustomRadioButton Created and
making the AutoPostBack property true.
The problem we are facing is, onPostBack the CustomCheckedChanged Event is
not firing.
We have created a TestApplication, with the same setup as in our production
application. To our surprise the event is firing and it is working fine.
The framework of our TestApplication and the Production is same. The only
difference is that in the production, we are having many more UserControls.
Also we have enabled the Viewstate of the controls, still OnPostBack
__VIEWSTATE is not having any value. Can anyone help us on this.