Click here to Skip to main content
15,904,156 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In my asp .net project I have used update panel. The textbox property AutoPostback="True" in the update panel. The problem is that when I click the textbox the page jump and go to go to the top of the page. How can I sol the problem. Please help me.
Posted
Comments
karthik Udhayakumar 26-Apr-14 2:14am    
post your code:)
Srinivas Kalabarigi 26-Apr-14 2:38am    
Have you written and javascript onchange event on the textbox?

Please paste the code....
Sumon562 26-Apr-14 4:22am    
NO I have not written any javascript code

Add the property maintainScrollPositionOnPostBack="true" in pages tag of web.config file
like as following
<pages maintainscrollpositiononpostback="true"></pages>
 
Share this answer
 
v3
Comments
Sumon562 26-Apr-14 5:44am    
I have done but it does not work. Please give a better solution.
hi,

Make the update mode to conditional on update panel.
Then in cording you can manually update the update panel.

C#
updatepanel1.update();


Thanks,
 
Share this answer
 
Comments
Sumon562 28-Apr-14 2:19am    
It does not work. I have to prevent scroling.

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