Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In one of my page I use some TextBox's to enter data. These TextBox's are inside a panel. What happens is that when I enter data into these textbox's the scrollbar goes up and I have to move down again to enter the data in the next textbox. How to stop this?
All TextBox is set as Autopostback=true. I tried using MaintainScrollPositionOnPostback="true" at the page in script but not working.
Posted
Comments
Do you have any events on TextBox keypress or TextChange events?
S.Rajendran from Coimbatore 16-Dec-13 0:38am    
Yes. TextBox.Focus(). That was the problem. I commented it and checked the scrollbar problem got solved. Thank you.
thatraja 16-Dec-13 2:20am    
Mark this question as solved to remove this question from unanswered list

1 solution

http://msdn.microsoft.com/en-us/library/system.windows.forms.scrollbar_events(v=vs.110).aspx

See The Page... you will have a better Idea
 
Share this answer
 
v2

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