Click here to Skip to main content
15,885,871 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have build cascading drop downs for country, province and city. the problem i facing is that when i select a countery then page is post back and returned his related province with page is being refreshed. i want to avoid this refresh of the webpage during post back.
How can i do this.
Posted
Comments
virang_21 2-Sep-14 18:32pm    
Put your drop downs inside UpdatePanel which will not refresh the entire page.

1 solution

Yes, there will be a postback when you select dropdownlist. Country dropdownlist go to server and fetch data and load state/province dropdownlist. As per virang_21 said you can put your dropdownlist inside an UpdatPanel and set update panel update mode property to partial will help update only the region inside the update panel. It avoid unused full page postback
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900