Maintain page scroll position after postback in asp.net 2.0




Maintain page scroll position after postback in asp.net 2.0 To maintain the page scroll position after a postback in asp.net 2.0 is suprisingly simple. All you have to do is simply add the below line of text to your code after your postback code:
Page.MaintainScrollPositionOnPostBack = True
An example of this is:
If ddlTitle.SelectedItem.Value = "Other" Then
  pnlTitle2.Visible = True
Else
  pnlTitle2.Visible = False
End If
Page.MaintainScrollPositionOnPostBack = True


No one has said that they like article yet, be the first and click here (0)
Send a link to this page via email Send a link to this page