473,698 Members | 2,704 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Ajax in paging

2 New Member
hi all,
i am very new in Ajax programming,
my problem is, i am creating paging with Ajax functionality,
and with Ajax i am calling javascript in each page no, my javascript function make the ajax request to the server.
now i am showing 10 records per page and in my DB there is 14 total records, and i have 2 pages total. in my first page 10 records is display and in second 4 records is display.
when i go through 1 to 2 i get correct 4 remaining record in second page , but when i come back to previous page means 2 to 1 i get only 4 records out of 10, i dont know why this is happning, when i come back to the previous page.
please help me, your suggesstion would be appreciated.
Sep 29 '08 #1
3 1501
acoder
16,027 Recognized Expert Moderator MVP
Post your code or a link to a test page.
Sep 29 '08 #2
kartic
2 New Member
please go through with this link
[removed link as per site rules]
Sep 29 '08 #3
acoder
16,027 Recognized Expert Moderator MVP
I have had to remove the link because it breaks the posting guidelines, in particular the rule:
Things which are generally unacceptable
Posting links to a site that contains inappropriate content or content that would break the posting guidelines if posted directly on Bytes.com, specifically but not limited to bad/foul language or sexually explicit sites.
Either post the code or post a link to a test page with no images.
Sep 29 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
1098
by: Manny Chohan | last post by:
Hi Guys, I am planning to put a Calendar control on my website. However i dont want the whole page to reload when i am paging the calendar. i did little research on web and found AJAX as a good source. There aare some good tutorials out there however i didnt find anything to use AJAX to bind Calendar to either XML or dataset. Can someone please explain how this can be done? Thanks
9
1670
by: darrel | last post by:
Last week I asked about ASP.net 2.0 AJAX frameworks and there appears to be several to choose from. I haven't used ASP.net 2.0 yet, but from doing a bit of reading, it appears that ASP.net 2.0 also has some client side call-backs built in that can update the display via AJAX. To ask a more specific question, do I need a specific AJAX framework to do the following:
1
2942
by: davidjgonzalez | last post by:
I have a GridView that has paging enabled. Each item (as defined in an ItemTemplate) includes several controls which have operations i would like to Atlas-enable. Everything is working well except when I page the GridView (the paging controllers are in the gridview's footer). The webpage doesnt scroll back to the top of the page, so when paging through the GridView the user is always looking at the last 4-5 items on the page. My current...
5
2384
by: toffee | last post by:
Hi, I need some pointers as I have no idea how to get started. I have a large table which pulls data from a mysql db. Because of the large number of records, it clugs up lot of memory and the browser massively slows down when scrolling down. What I would like to do is pull say 50 records and make the scrollbar as long as if all records were retrieved; then use the on scroll event to retrieve another 50 records based on far the scroll...
6
3296
by: mattdaddym | last post by:
Hi all, I'm looking for a way to show my users the progress of their sql queries. I've implemented Microsoft Ajax in order to show a progress bar, but I would love to be able to show: number of rows loaded vs total rows I tried a few searches for this, but haven't come up with the right key words I guess. Right now I have zilch. So, it's easy enough to get
0
5518
by: Phillip Ian | last post by:
Tried this over in CSharp.General and didn't get anything, so I thought I'd try again here. If there's an AJAX specific group I could ask this in, please let me know...I did look. I'm trying to code what I think is a fairly typical Master/Detail scenario with two GridViews, using AJAX. Using the Northwind sample, I have two ObjectDataSources - one which pulls data from the Orders table, and one that pulls the related data from . Each...
1
2509
by: dan.goyette | last post by:
I'm fairly new to using AJAX. I'm currently developing a data grid application in coldfusion, using AJAX for paging/filter/sorting updates to the grid. So far I've just been returning raw html, and updating the innerHTML of a div on the page when the response comes back. But now I've decided it would be useful to split my response into (at least) two parts. The first will be the raw HTML to place in the div. The second part will be...
0
931
by: kal | last post by:
I have a gridview on my page - the 'onSelIndexChan' of which is wired to a ajax update panel - via triggers. this works fine but the grids paging wont work - or rather it fires a post back but the next page isnt displayed. and then when i click the page link again it gives an invalid argument error. There is no code in the event handlers
23
16187
by: rsdev | last post by:
Hi, I have read hundreds of post regarding this issue, but none have an answer for my situation. So hopefully somebody here can help! I have a gridview in an updatepanel (AJAX control toolkit) and because paging/sorting aren't supported I've added my own custom paging. I have dynamically loaded LinkButtons in the updatepanel to change the page but they only fire on the second click. I have also attached javascript to the rows so that...
0
8603
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9157
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9023
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8893
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6518
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4366
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4615
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3045
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.