Posted on: 3/27/2011 9:30:47 AM | Views : 267

I have pages with lot of controls (datagrid, treeview, listview, checkboxes itd...). Each control have event usually SelectedIndexChanged and that is ok. On page load, I read default values from database and set controls selected or not. Problem is that in this case fires every damn event of each control and causes problem with loading page. I want to completely turn of runing of all events while triggered from page.load event? Is there nice solution for this? I dont want to mess with RemoveHandler and AddHandler in page.load procedure (although I tried to remove handler, change selected index and then add handler, all in same page.load procedure but it doesnt work).
Is there possibility to turn all events for load procedure, or to use another procedures (init, preinit, loadcomplete, prerender...) to store default values readed from database?
Or can I somehow  figure out from witch procedure is called event, then I can implement something like this to skip execu ...

Go to the complete details ...