473,387 Members | 1,541 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

AJAX Suggestions

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.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

Feb 25 '08 #1
3 1114
no ajax required. just set MaintainScrollPositionOnPostBack

-- bruce (sqlwork.com)
"Jonathan Wood" wrote:
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.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

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

Thanks.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

"bruce barker" <br*********@discussions.microsoft.comwrote in message
news:A0**********************************@microsof t.com...
no ajax required. just set MaintainScrollPositionOnPostBack

-- bruce (sqlwork.com)
"Jonathan Wood" wrote:
>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.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

Feb 25 '08 #3
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)
"Jonathan Wood" wrote:
How about that? Since that is controlled by the browser, I don't have any
idea how that even works.

Thanks.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

"bruce barker" <br*********@discussions.microsoft.comwrote in message
news:A0**********************************@microsof t.com...
no ajax required. just set MaintainScrollPositionOnPostBack

-- bruce (sqlwork.com)
"Jonathan Wood" wrote:
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.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com


Feb 25 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Frances | last post by:
I literally started learning AJAX just last weekend.. I have this page, http://www.francesdelrio.com/ajax/db2.html, where I'm essentially doing what's here,...
5
by: dougwig | last post by:
I'm trying to handle the scenario where a user's session times out and and their ajax request triggers a redirection by the webserver (302 error?). I'm using Prototype 1.4 and the my works great...
8
by: Bill Gower | last post by:
I have a webapp that uses the AjaxControlToolkit. The app and ajax works fine when run within my dev server in Visual Studio 2005 but does not work on IIS. Any Suggestions? Bill
5
by: simon | last post by:
hello, I have a server set up on my local (home) network and can not get an ajax application to run on the box. it works fine on our developement server and also works fine locally. I...
1
by: bizt | last post by:
Hi, I am having my first real attempt at an ajax class as so far Ive managed to build one that, once instatiated, will allow me to define which function it will call on completion then retrieves...
9
by: Trapulo | last post by:
Hello, with ASP.NET 2.0 Ajax every unexpected error is managed client-side with a popup that reports the error to the user. In ASP.NET 3.5 this behavor has been changed: how can I have a similar...
7
by: =?Utf-8?B?QmlsbHkgWmhhbmc=?= | last post by:
我们现在遇到一个问题,通过wcf创建的webservice,选择windows service作为宿主,采用java作为客户端调用成功,但是无法使用asp.net ajax调用。...
11
by: =?Utf-8?B?R2VyaGFyZA==?= | last post by:
I have run into a situation that if a page/tab that uses the Ajax toolkit (using .net version 3.5) is closed before the Ajax enable controls complete loading, then IE locks up. Does it in both IE7...
7
by: RichB | last post by:
I am trying to get to grips with the asp.net ajaxcontrol toolkit, and am trying to add a tabbed control to the page. I have no problems within the aspx file, and can dynamically manipulate a...
7
by: mike57 | last post by:
The minimal AJAX script below works in Firefox, but not in IE, Opera, or Chrome. I could use some suggestions or referrals to resources that will help me get the script working in other browsers. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.