Lose position in datagrid

  • Thread starter Thread starter Ady
  • Start date Start date
A

Ady

I have a datagrid with about ten items on one page (I'd
like more).

One of the columns in the datagrid contains a hyperlink
rendered as an image which then fires some code which
alters the record (and therefore posts back)

<asp:TemplateColumn>
<ItemTemplate>
<asp:HyperLink Runat="server" NavigateUrl='<%
# "javascript:IncludeMess(" & DataBinder.Eval
(Container.DataItem, "Id") & ")" %>' Text="<img border=0
Alt='Include this item in reports' src=./Images/OK.gif>"
ID="IncludeMess"/>
</ItemTemplate>
</asp:TemplateColumn>

When the page posts back it always goes to the top of the
page. Can I get the form to post back to the position it
was before? If so how, or what are my options?

Many Thanks

Ady
 
Back
Top