J
Jasmine
hi all,
In my code I dynamically create web controls. My problem is
newCheckBoxList = new CheckBoxList();
newCheckBoxList.EnableViewState = true;
newCheckBoxList.AutoPostBack = true;
newCheckBoxList.SelectedIndexChanged += new
System.EventHandler(Checked_Changed);
When I create a dynamic checkboxlist like that, I handle the selected index
changed event but my page refreshes and all controls I have drawn
disappears. Instead of that when I only create the checkboxlist and dont
use the last 3 commands, I have selected index -1 when I control the
checkbox list.
Is there any way to store selected indexes without enabling autopostback?
Thanks.
In my code I dynamically create web controls. My problem is
newCheckBoxList = new CheckBoxList();
newCheckBoxList.EnableViewState = true;
newCheckBoxList.AutoPostBack = true;
newCheckBoxList.SelectedIndexChanged += new
System.EventHandler(Checked_Changed);
When I create a dynamic checkboxlist like that, I handle the selected index
changed event but my page refreshes and all controls I have drawn
disappears. Instead of that when I only create the checkboxlist and dont
use the last 3 commands, I have selected index -1 when I control the
checkbox list.
Is there any way to store selected indexes without enabling autopostback?
Thanks.