![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I tried to create a custom server control that displays some radio buttons and it should postback the page on selecting the items. I tried like below code, but on postback, the selected radio button state is not maintained. Anyone could tell me what is missing? public class WebCustomControl1 : RadioButtonList { protected override void Render(HtmlTextWriter output) { this.Items.Add(new ListItem("aaa")); this.Items.Add(new ListItem("bbb")); this.AutoPostBack = true; base.Render(output); } } |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Hi Steve, Thanks for the reply. As it is custom control class, I couldn't see any Init event there. Could you tell me which one you are telling? |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |