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

I have a form in which there is a DropDownList.
When I select an item from the DropDownList the whole page gets refreshed.

I want it to stop refreshing, how can I do that?

Thanks
Posted
Updated 2-Sep-10 22:41pm
v2
Comments
Dalek Dave 3-Sep-10 4:41am    
Edit for Grammar, Spelling and Syntax.

Check the 'AutoPostBack' property of the list, it will be set to True. This means it will automatically post back to the server on every click event (when you select something)

Just set it to False and it will stop this behaviour
 
Share this answer
 
Comments
Dalek Dave 3-Sep-10 4:41am    
Simple answer!
am.net 3-Sep-10 4:59am    
Reason for my vote of 5
right answer
am.net 3-Sep-10 5:00am    
Simple!
You must check your code behind then. There must be a line in between, called at Page_load which is setting Autopostback property of dropdownlist to true. Remove that particular line and it will get on working fine.

Anurag
 
Share this answer
 
i did that too but same problem continue...
 
Share this answer
 
In design u give AutoPostBack="False" or remove AutoPostBack itself. This will work.
 
Share this answer
 
Comments
shrikant.kudlur 7-Sep-10 1:37am    
still same problem continue...
see i have 12 text box and 13th one is dropdownlist
i enter text in text box and press tab to navigate to next text box
when i reach dropdownlist the whole page get refresh...

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