Click here to Skip to main content
15,921,276 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,

Can anyone know?

how to stop page refres in drop downlist ?
Posted

Hi,

Just set Autopostback property of dropdownlist false to stop page refresh during the selection. [This is only just selection Don't use this if you are populating any data based on the selection or Use AJAX]

Please refer links below:


ASP.NET DropDownList Control[^]
DropDownList Web Server Control[^]
How to use DropDownList AutoPostBack feature[^]
AJAX DropDownList[^]
Ajax Cascading Dropdownlist Sample with database using asp.net[^]
 
Share this answer
 
Set AutoPostBack="False" instead of true. AutoPostBack gets or sets a value that indicates whether an automatic postback to the server occurs when the selected index has been changed in a DropDownList. The default value of this DropDownList.AutoPostBack is false
 
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