Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Selections don't stick on PostBack with CheckBoxList

Status
Not open for further replies.

ChrisBrunner

Programmer
Dec 16, 2004
7
US
Hi all,

I'm using the CheckBoxList control for the first time. AutoPostBack is set to "True". My problem is that on postback, none of the items seem to be selected. What could I be doing wrong? The code is here: I'm talking about the code around line 73. There is a live example here, but it may be down if I'm working on it:
Thanks in advance!
 
Is EnableViewState for the CheckBoxList set to true?
 
Usually this happens because you re-bind the list (without checking for PostBack).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top