473,387 Members | 1,791 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.

How to do paging in web service

I will have both web and win clients and would like to page my data. I
could not find out how the datagrid control does it's paging.

What library/methods can I use in .Net 2.0 to do paging of SQL data in a web
service?

Thanks in advance,
Donald Adams

Mar 6 '07 #1
3 1067
Hi

did you think using the "RowNum" of the Sql2005 ?
this way you can send to the WebService
which would call the SP with from RowNum and To RowNum
and you'de get the relevant rows
from example from row 50 to 59

--
-------------------------------------
If my answer helped you please press "Yes" bellow

אם תשובה זו עזרה לך, א*א הצבע "כן"

Adlai Maschiach
http://blogs.microsoft.co.il/blogs/adlaim/
"Donald Adams" wrote:
I will have both web and win clients and would like to page my data. I
could not find out how the datagrid control does it's paging.

What library/methods can I use in .Net 2.0 to do paging of SQL data in a web
service?

Thanks in advance,
Donald Adams
Mar 6 '07 #2
Hi,

Thanks, I can use that, but I'm actually wanting to know how does dataGrid
use my SqlDataObject, or ObjectSource and add paging and sorting to it....
so I can do the same in my webservice.
A code sample would be most helpful.

,,,Donald Adams

"Adlai Maschiach" <Ad************@discussions.microsoft.comwrote in
message news:38**********************************@microsof t.com...
Hi

did you think using the "RowNum" of the Sql2005 ?
this way you can send to the WebService
which would call the SP with from RowNum and To RowNum
and you'de get the relevant rows
from example from row 50 to 59

--
-------------------------------------
If my answer helped you please press "Yes" bellow

אם תשובה זו עזרה לך, א*א הצבע "כן"

Adlai Maschiach
http://blogs.microsoft.co.il/blogs/adlaim/
"Donald Adams" wrote:
>I will have both web and win clients and would like to page my data. I
could not find out how the datagrid control does it's paging.

What library/methods can I use in .Net 2.0 to do paging of SQL data in a
web
service?

Thanks in advance,
Donald Adams
Mar 8 '07 #3
They do it by using PagedDataSource class.

--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net

"Donald Adams" <BD******@hotmail.comwrote in message
news:C1**********************************@microsof t.com...
Hi,

Thanks, I can use that, but I'm actually wanting to know how does dataGrid
use my SqlDataObject, or ObjectSource and add paging and sorting to it....
so I can do the same in my webservice.
A code sample would be most helpful.

,,,Donald Adams

"Adlai Maschiach" <Ad************@discussions.microsoft.comwrote in
message news:38**********************************@microsof t.com...
>Hi

did you think using the "RowNum" of the Sql2005 ?
this way you can send to the WebService
which would call the SP with from RowNum and To RowNum
and you'de get the relevant rows
from example from row 50 to 59

--
-------------------------------------
If my answer helped you please press "Yes" bellow

אם תשובה זו עזרה לך, א*א הצבע "כן"

Adlai Maschiach
http://blogs.microsoft.co.il/blogs/adlaim/
"Donald Adams" wrote:
>>I will have both web and win clients and would like to page my data. I
could not find out how the datagrid control does it's paging.

What library/methods can I use in .Net 2.0 to do paging of SQL data in a
web
service?

Thanks in advance,
Donald Adams
Mar 8 '07 #4

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

Similar topics

0
by: ck388 | last post by:
For some reason when I enable the callback feature of the gridview I still get a page refresh, that is it seems like there is a postback that occurs, not a callback which is just supposed to update...
6
by: Shawn | last post by:
Hi. I already have a datagrid where I'm using paging. I have a stored procedure that fills a temp table with 200-500 rows and then sends back 10 records at the time. When I go to page 2 the SP...
2
by: asad | last post by:
Hello friends, i am designing a ASP.NET page where i want to use custom paging bcoz data is too heavy so pls tell me how can i use custom paging in ASP.NET Thanks
4
by: Manuel Alves | last post by:
Scenario: ASP 2.0 on XP pro dev machine works fine. Publishing to windows 2003 server worked OK until I included paging for a datagrid. On page load I cal sub binddata Private Sub...
2
by: farhad13841384 | last post by:
Hi , I Hope You fine. I have some problem with this code for paging in asp.net this bottom code work correctly without any error but when I try to place separate code in .VB file then error is...
0
by: anonieko | last post by:
This approach I found very efficient and FAST when compared to the rowcount, or Subquery Approaches. This is before the advent of a ranking function from DB such as ROW_NUMBER() in SQL Server...
2
by: rn5a | last post by:
In a shopping cart app, a ASPX page retrieves the order details & personal details of a user from a MS-Access database table depending upon the username of the user. The order details of a...
3
by: Ronald S. Cook | last post by:
I was told that if calling lots of records from the database (let's say 100,000), that the GridView's paging feature would automatically "handle" everything. But the 100,000 records are still...
5
by: Donald Adams | last post by:
Hi, I will have both web and win clients and would like to page my data. I could not find out how the datagrid control does it's paging though I did find some sample code that says they do it...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
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.