CheckBoxList not displaying with first click
-
I am using Menu control in association with MultiView/Views. When this menu item is clicked where I have the CheckBoxList - it doesn't select the CheckBoxes from the info from my database, requires a second click. I am not calling DataBound for some other reason. If I used databound in Page_Load, it would display fine. Any idea how I can fix it? Thanks.
-
I am using Menu control in association with MultiView/Views. When this menu item is clicked where I have the CheckBoxList - it doesn't select the CheckBoxes from the info from my database, requires a second click. I am not calling DataBound for some other reason. If I used databound in Page_Load, it would display fine. Any idea how I can fix it? Thanks.
-
What is your solution?
ma
tju
Pengaturcara Perisian Subang Jaya,Selangor, Malaysia Ring Master SB MVP 2008 ;p Subang Jaya MOP (Otai)1. In Page_Load (If (!Page.IsPostBack)), get the info from the database, select the CheckBoxes that matches the criteria based on that info, and DataBind(). 2) In MultiView_ActiveIndexChanged event handler, get the info from the database, select the CheckBoxes that matches the criteria based on that info. 3) Use a Save button, and in the Button_Click event handler, first Delete info from the table for the ID I am working with, then Insert values for that ID and each of the CheckBoxes that are currently selected. 4) Don't try to do anything in the SelectedIndexChanged for the CheckBoxList (which is a logical thing to try), because here, you don't know which Box is clicked as the sender is the List, not any individual CheckBox. If you have any Label to display messages, you can just clear the label here. Thats it. Thanks.