Click here to Skip to main content
12,956,512 members (74,478 online)
Rate this:
Please Sign up or sign in to vote.
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 10-Oct-12 19:50pm
Aman.A 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)

    Print Answers RSS
Top Experts
Last 24hrsThis month
OriginalGriff 6,869
CHill60 3,550
Maciej Los 3,302
ppolymorphe 2,080
Jochen Arndt 1,973

Advertise | Privacy | Mobile
Web02 | 2.8.170525.1 | Last Updated 11 Oct 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

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