AJAX Suggestions

J

Jonathan Wood

I am completely new to AJAX.

I have a GridView control and my client is complaining that, whenever they
select a row in the grid, the page resets to the top of the page.

It seems like AJAX would be ideal if I could have the GridView update
without updating the entire page. However, most of the stuff I read about
AJAX doesn't seem to help because it's the GridView control that is handling
the logic here. Does anyone know if this logic can be overridden to work
using AJAX?

Any tips appreciated.

Thanks.
 
B

bruce barker

no ajax required. just set MaintainScrollPositionOnPostBack

-- bruce (sqlwork.com)
 
J

Jonathan Wood

How about that? Since that is controlled by the browser, I don't have any
idea how that even works.

Thanks.
 
B

bruce barker

its pretty trival. there is client code emitted by .net that at postback
stores the current x & y positions in a hidden field. then on render if the
hidden fields have a value, its render the javascript to do the scroll.

-- bruce (sqlwork.com)
 

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

Top