I don't know what you mean by "without requiring custom code". It is a custom control, so it's all custom code. But you probably just need to save your selected index to the ViewState in OnPreRender. AutoPostback will cause the entire page to go back to the server every time someone selects something from the dropdown, which may not be what you want.
Main Topics
Browse All Topics





by: Nash2334Posted on 2008-08-25 at 09:20:33ID: 22306757
Setting AutoPostBack=true in your DropDownList or derived control should retain the value on postback.