I have an ASP.net WebForms page that has a lot of content on the top of the screen. It has a link button that will post back to the page and show another section of the page
try this
protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack) { string targetId = Page.Request.Params.Get("__EVENTTARGET"); Page.ClientScript.RegisterStartupScript(this.GetType(), "focusthis", "document.getElementById('" + targetId + "').focus()", true); } }