Lose position in datagrid

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top