Click here to Skip to main content
15,880,956 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
In my Asp.net Web application when i hit Enter in Textbox the page postback Automatically , how to Stop this for Whole page .. i have more then 30 text box in every page. help me to solve
Posted
Comments
[no name] 15-May-14 5:01am    
show your code
Kornfeld Eliyahu Peter 15-May-14 5:05am    
Do you have a button on the page too?
Member 10529245 15-May-14 5:15am    
Yes i have the Button , when i click Button That Works its Functionality perfectly .. but inside textbox when i hit enter it post back
Nandakishore G N 15-May-14 7:08am    
Check if the AutoPostback = true.if yes make it false. Paste the design part of the page.

 
Share this answer
 
Hi,

try to put text box in updatepanel.
 
Share this answer
 
Button on your form has default submit behavior .This could be the reason for this nature.
 
Share this answer
 
Please ensure that you haven't enabled the "AutoPostBack" property of textbox.
 
Share this answer
 
Delete the DefaultButton property of your webform. This will solve your problem.
 
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