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.
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.
I've heard this. We build application with crystal rpt and deploy in the server. In server, we dont want to install cr. For that purpose, If we build the asp.net application with merge module, we can avoid the problem. Thats why I put my qtn here