M
Michael Tanner
I have created a custom control that derives from the PlaceHolder control.
Based on a property setting, I load a DropDownList or a TextBox into the
PlaceHolder control. I load the DropDownList or TextBox control in
protected override void OnPreRender(EventArgs e).
The issue that I have is getting the SelectedIndex from the DropDownList
after a postback. The PlaceHolder control does not have the SelectedIndex
property and I can't figure out how to maintain the DropDownList after a
postback - so FindControl doesn't work for me.
Any ideas would be appreciated.
Based on a property setting, I load a DropDownList or a TextBox into the
PlaceHolder control. I load the DropDownList or TextBox control in
protected override void OnPreRender(EventArgs e).
The issue that I have is getting the SelectedIndex from the DropDownList
after a postback. The PlaceHolder control does not have the SelectedIndex
property and I can't figure out how to maintain the DropDownList after a
postback - so FindControl doesn't work for me.
Any ideas would be appreciated.