Maintain page scroll position after postback in asp.net 2.0
Thursday 19 April 2007
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
|
(0)
|
|
|