Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Professionals
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
ASP.NET 3.5 Professionals If you are an experienced ASP.NET programmer, this is the forum for your 3.5 questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Professionals 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
  #11 (permalink)  
Old April 10th, 2010, 05:23 PM
Registered User
 
Join Date: Apr 2010
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I did it and I got this exception

The data source does not support server-side data paging
  #12 (permalink)  
Old April 11th, 2010, 03:44 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Quote:
Did you resolve the issue with the form controls and state? If so, would you mind sharing how you solved it?
Second attempt to find out more about your results. For future visitors to this forum (and to me), it would be nice if you shared if, and how, you resolved the original topic. Also, it's often better to start a new thread instead of continuing an old one.

That said, the error message you get is by design. I assume you're using a GridView set up for paging. The OracleDataReader is a "forward-only" type reader which doesn't support server side paging.

You need to implement server side paging manually (for example, only get the necessary number of records from the database and assign it to the grid) or you can convert your reader to something that's supported by the GridView:

For more information: http://msdn.microsoft.com/en-us/library/aa479347.aspx
http://www.google.com/#hl=en&source=...4aa51310bf9075

To convert the reader to a DataTable: http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=406
Note: this can lead to very bad performance where you get all records from the database and only display a few.

You can think OracleDataReader whereever you see SqlDataReader.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
  #13 (permalink)  
Old April 13th, 2010, 08:14 AM
Registered User
 
Join Date: Apr 2010
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Imar,
I couldn't post my results about the previous issue with the content page since time limitation, but I'll do it as soon as I can.

I have another issue regarding section 3 in your book "Designing your web page".
I'm trying to resize some controls on the page but for that I should use the following code.
The issue is that I can not get it compiled (the code is from code project).
My question is if this code is too old and I should modify i, what are the modifications ?

Thanks,
Ran

public string BT
{
get
{

//if page is first time requested, then set
//the default resolution setting as 1280x1024
if (! Page.IsPostBack )
{
//Set the Html Hidden Input Control Value
//For Reffering on Client Through JavaScript
ServerResolution.Value="1280Res";
//Returning CSS class name according to client's resolution
return "button1280";

}

else if( Request.Form["ClientResolution"] == "1280Res")
{
//Set the Html Hidden Input Control Value
//For Reffering on Client Through JavaScript
ServerResolution.Value="1280Res";
//Returning CSS class name according to client's resolution
return "button1280";
}

else if( Request.Form["ClientResolution"] == "1024Res")
{
//Set the Html Hidden Input Control Value
//For Reffering on Client Through JavaScript
ServerResolution.Value="1024Res";
//Returning CSS class name according to client's resolution
return "button1024";
}

else if( Request.Form["ClientResolution"] == "800Res")
{
//Set the Html Hidden Input Control Value
//For Reffering on Client Through JavaScript
ServerResolution.Value="800Res";
//Returning CSS class name according to client's resolution
return "button800";
}

else
{
//if client resolution is not detected yet,
//then set default 1280x1024 resolution
return "button1280";
}
}
}
  #14 (permalink)  
Old April 13th, 2010, 08:17 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

I have no idea where this code comes from or which book you're referring to. Are you sure you posted in the right forum and are addressing the right author?

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
  #15 (permalink)  
Old April 13th, 2010, 08:23 AM
Registered User
 
Join Date: Apr 2010
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'll refine my question
I want to have the client page resolution and to set the server resolution.
How should I do it ?

Thanks,
Ran
  #16 (permalink)  
Old April 13th, 2010, 08:27 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

What do you mean with Server Resolution? There is no such thing as server resolution.

As I indicated earlier, it would be much easier if you started a new thread for a new topic. This way you a) don't clutter up this thread with unrelated topics and b) attract more potential viewers as currently people may ignore this thread as they may think it's already being handled.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 


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
Master Page Method: Code-Behind for Content Page kwilliams ASP.NET 2.0 Professional 3 June 2nd, 2008 12:57 PM
Master Page and Content Page with Java script Harjinder ASP.NET 2.0 Professional 1 February 1st, 2008 10:31 AM
master page and content page interaction mrjoka ASP.NET 2.0 Basics 0 March 15th, 2007 10:45 AM
Access Master page control from Content page. angshujit ASP.NET 2.0 Basics 3 January 11th, 2007 06:20 AM
content page viewstate value in Master Page cbe_seenu ASP.NET 2.0 Professional 0 August 1st, 2006 01:01 AM



All times are GMT -4. The time now is 05:46 AM.


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