CheckboxList onselectindexchanged
Hey guys,
I keep running into situtations where I have long checkboxlist or radiobutton lists - maybe 20-100 items or so but when a certain one of them is checked/unchecked (suppose it's always item #100) a method needs to be called.
Is there a better way to do this besides
<asp:checkboxlist id="uxList" onselectindexchanged="method" ...
protected void method(...){
if( uxList.Items[100].Checked == true){ /* do somethign */}
//else exit method
}
As it is above, a postback is made for every single item the user checks and it slows down their input process. I don't really want to extract the item into it's own control.
Can I make it so that when that item in the list and only that item is checked/selected/unchecked/unselected method() fires?
|