get bind Data only in postback
-
Dear All, I am doing a scienero where I have dropdownList which is binded to datasource. I want that based on selectedIndex it should do postback only once. as for example If the new SelectedIndex is 1 then it sould do a postback retreive all data from datasource based on selectedIndex. for the 2nd time If I select index 1 then It should not do postback but I want to store items in client side as the first index is selected at some var. and then every time new index is selected it should do postback then save binded items at some var. any ideas?
Abdul Rahaman Hamidy Database Developer Kabul, Afghanistan
-
Dear All, I am doing a scienero where I have dropdownList which is binded to datasource. I want that based on selectedIndex it should do postback only once. as for example If the new SelectedIndex is 1 then it sould do a postback retreive all data from datasource based on selectedIndex. for the 2nd time If I select index 1 then It should not do postback but I want to store items in client side as the first index is selected at some var. and then every time new index is selected it should do postback then save binded items at some var. any ideas?
Abdul Rahaman Hamidy Database Developer Kabul, Afghanistan
tgis is very simple.Did you try something? Dropdown's selectedindexchanged event is called only you one change the index if selects the same again and again then it is not callled and there is no postback occurs in this scenario.
Cheers!! Brij Check my latest Article :Exploring ASP.NET Validators
-
tgis is very simple.Did you try something? Dropdown's selectedindexchanged event is called only you one change the index if selects the same again and again then it is not callled and there is no postback occurs in this scenario.
Cheers!! Brij Check my latest Article :Exploring ASP.NET Validators
thanks for the reply, In fact you are true, but what happens when you first select Index 1 then index 2 then again index 1, I am sure I will do a postback which I dont wanted to do. I would like to store it at some client side variable. any ideas?
Abdul Rahaman Hamidy Database Developer Kabul, Afghanistan
-
thanks for the reply, In fact you are true, but what happens when you first select Index 1 then index 2 then again index 1, I am sure I will do a postback which I dont wanted to do. I would like to store it at some client side variable. any ideas?
Abdul Rahaman Hamidy Database Developer Kabul, Afghanistan