In one of Vishal's post he tries to reply to a question that has appeared many times in CNUG forums.
How to not go to the top of the page when a postback happens? Well most people recommed the use of SmartNavigation, but there are documented negatives to it. So I would really recomend a way that was talked about by Scott Gu in one of his ASP.NET Tips and Tricks session in TechEd. Incidently, I had also talked about this in one of the CNUG meets about ASP.NET and other tips.
The trick is to use the "onscroll" event to track the current position and generate client side script to go back to that position on postback. The current position is stored in a hidden variable.
Private Sub RetainScrollPosition()
Dim saveScrollPosition As New StringBuilder
Dim setScrollPosition As New StringBuilder
RegisterHiddenField("__SCROLLPOS", "0")
saveScrollPosition.Append("")
RegisterStartupScript("saveScroll", saveScrollPosition.ToString())
If (Page.IsPostBack = True) Then
setScrollPosition.Append("")
RegisterStartupScript("setScroll", setScrollPosition.ToString())
End If
End Sub