Add Below js file in your project
var lastFocusedControlId = ""; function focusHandler(e) { document.activeElement = e.originalTarg
et; } function appInit() { if (typeof(window.addEventListener) !== "undefined") { window.addEvent
Listener("focus", focusHandler, true); } Sys.WebForms.PageRequestManager.getInstance().add_pageLo
ading(pageLoadingHandler); Sys.WebForms.PageRequestManager.getInstance().add_pageLoaded(pageLoade
dHandler); } function pageLoadingHandler(sender, args) { lastFocusedControlId = typeof(document.a
ctiveElement) === "undefined" ? "" : document.activeElement.id; } function focusControl(targetCon
trol) { if (Sys.Browser.agent === Sys.Browser.InternetExplorer) { var focusTarget = targetControl
; if (focusTarget && (typeof(focusTarget.contentEditable) !== "undefined")) { oldContentEditableS
etting = focusTarget.contentEditable; focusTarget.contentEditable = false; } else { focusTarget =
null; } targetControl.focus(); if (focusTarget) { focusTarget.contentEditable = oldContentEditab
leSetting; } } else { targetControl.focus(); } } function pageLoadedHandler(sender, args) { if (t
ypeof(lastFocusedControlId) !== "undefined" && lastFocusedControlId != "") { var newFocused = $ge
t(lastFocusedControlId); if (newFocused) { focusControl(newFocused); } } } Sys.Application.add_in
it(appInit);
in Master page :
<asp:ScriptManager ID="c_scriptManager" runat="server"> <Scripts> <asp:ScriptReference Path="~/F
ixFocus.js" /> </Scripts> </asp:ScriptManager>