Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have an update panel which is causing a postback on part of the page and after postback the control that had focus (which is not in the update panel) loses focus. How can I identify which control had focus and save that value, so that I can refocus to it when the page reloads. Thank you.
Posted
Comments
I.explore.code 11-Oct-12 15:04pm    
if its not too onerous to set the focus manually to that control, why not do it manually? because every time a post back happens the view state gets rendered from scratch so you will lose the focus, unless ofcourse you put the control in the update panel.

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