Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 19th, 2006, 04:59 AM
Authorized User
 
Join Date: Feb 2006
Location: , , .
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

  #2 (permalink)  
Old March 19th, 2006, 04:42 PM
Friend of Wrox
Points: 4,332, Level: 27
Points: 4,332, Level: 27 Points: 4,332, Level: 27 Points: 4,332, Level: 27
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2003
Location: , NJ, USA.
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

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

  #3 (permalink)  
Old March 20th, 2006, 04:33 AM
Authorized User
 
Join Date: Feb 2006
Location: , , .
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"

  #4 (permalink)  
Old March 20th, 2006, 10:43 AM
Friend of Wrox
Points: 4,332, Level: 27
Points: 4,332, Level: 27 Points: 4,332, Level: 27 Points: 4,332, Level: 27
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2003
Location: , NJ, USA.
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.

  #5 (permalink)  
Old November 1st, 2006, 11:40 AM
Registered User
 
Join Date: Oct 2006
Location: Dublin, , Ireland.
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
  #6 (permalink)  
Old November 6th, 2006, 09:51 PM
Authorized User
 
Join Date: Sep 2006
Location: mumbai, maharashtra, India.
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'
  #7 (permalink)  
Old January 21st, 2007, 08:17 AM
123 123 is offline
Registered User
 
Join Date: Oct 2003
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

you must set gridview datasource property dataset not datareader .

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 09:16 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.