Click here to Skip to main content
14,325,352 members
Rate this:
Please Sign up or sign in to vote.
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

Rate this:
Please Sign up or sign in to vote.

Solution 1

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
   
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100