Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 19th, 2006, 04:59 AM
Authorized User
 
Join Date: Feb 2006
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Default Datasource doesn't support server-side data pagin

Hi folks:

if you want to use the builting datasource then you are allowed a data paging (where you can go from one page to another), however you cannot do that when you building your data source using script.

is that true? that's what the system messaging comes up with. if so, how would a person use a search method to retrieve some data from the gridview and in the same time allow data paging? say i have a text box where i type a user id and then get some data about this user in data gridview (that so far works fine, please if you want to know about how this works go to ASP 2.0 biginners post called: Searching for data) but the system does not allow paging. Why

anyone can help

 
Old March 19th, 2006, 04:42 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

The gridview allows paging, not the datasource. Try:
gridview1.allowpaging = TRUE

 
Old March 20th, 2006, 04:33 AM
Authorized User
 
Join Date: Feb 2006
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thank you very much


i meant the paging in the gridview where the system does not allowed the paging because the builting sever-side data source.

i could only use search method to look for any record in the datagrid using the server-side data source, but in the same time i would like to use paging to browse one page to another when the search filter the data. do you think this is possible? probably with another method? please refer to my post in this forum under the title "how to search in database"

 
Old March 20th, 2006, 10:43 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

I don't understand your confusion. You can filter your datasource and have paging on the grid at the same time.

 
Old November 1st, 2006, 11:40 AM
Registered User
 
Join Date: Oct 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Metalore
Default

Hi all,

I am getting this error as well, as far as I know it is a bug recognised by MS.

I think what saif44 was trying to explain was that when you are binding a new datasource to a gridview and you are using pagination, it returns an error stating...

The data source does not support server-side data paging.

Anyone know of a workaround for this? Would much appreciate any help.

I have tried gridview.allowpaging = true - does not fix issue

Regards,

Tony
 
Old November 6th, 2006, 09:51 PM
Authorized User
 
Join Date: Sep 2006
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi let me clear mr.jbenson's confusion.
i have a gridview. then i created a connectionstring. and then a sqlcommad and then an sqlreader. all this in code behind file.
then,
gridview1.datasource = sqldatareader1
gridview1.databind()

all seems well !!!

then i set allowpaging = true, in the design view for gridview.
then on page load it shows me " THIS DATASOURCE DOESN'T SUPPORT SERVER-SIDE DATA PAGING "

any solution ???

--------------------------------------------------
therez nothin' as impossible, bcaz the word itself says : 'i'-'m'-'possible'
 
Old January 21st, 2007, 08:17 AM
123 123 is offline
Registered User
 
Join Date: Oct 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

you must set gridview datasource property dataset not datareader .






Similar Threads
Thread Thread Starter Forum Replies Last Post
callback data to server side code aranjan ASP.NET 2.0 Basics 1 September 4th, 2007 06:39 AM
Server Side Data Passing AgentSmith ASP.NET 1.0 and 1.1 Professional 1 July 11th, 2006 05:03 PM
server side data access rizp ASP.NET 1.0 and 1.1 Basics 3 September 6th, 2004 12:41 PM
Accessing Server Side Data on Client Side steve456 Classic ASP Professional 3 October 15th, 2003 02:33 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.