HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Using the core DNN Pager controlUsing the core DNN Pager control
Previous
 
Next
New Post
1/3/2007 6:54 AM
 
Hi,

I'm having a look at the core DNN Pager control and was wondering why the choice was made to use the Querystring to post values instead of a normal postback event. For example, if you go to the next page it bungs the CurrentPage and Filter into the querystring and effectively requests the page again. This means that anything on the page is reset - you can see this in action by going to the core User search and typing a value and changing the DDL to a property. A list of values is returned, but if you page then it loses the value of the DDL and filter (which is a bug as it means you can't page users).

I was about to use this but then I had to start hacking anything that I wanted to persist into the Querystring and that look ugly and becomes unmanageble. I don't understand why the control does not just postback with a Next or Last event which could be used to increment the PageNumber etc without having to hack around with the URL?

Any advice would be appreciated...

Thanks,
Rodney
Smart-Thinker - Home of SmartSocial - the 100% Free DotNetNuke Social Networking Product Suite
Do use DNN a lot? Try the DotNetNuke Toolbar to save you time!
PokerDIY - Example Implementation of DNN Social Network
 
New Post
1/3/2007 9:53 AM
 

Rodney,

I was wondering the same and initially wrote my own pager control that did not user the querystring to post paging values but rather kept them in viewstate and posted back with a page changed custom event. I later came to the conclusion that the reason the DNN pager control uses the querystring is to make it possible for users to bookmark a particular page of data or to copy the url with paging values from the browser address bar and paste it elsewhere. I've since switched over to using the DNN pager.  As you've seen in the problem you mentioned with paging the admin users table, it is essential to pass ALL of your own parameters (such as from a filter) back into the DNN pager using its QuerystringParams property.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project
Extensions Forge Projects - UserExport, ContentDeJour, ePrayer and ImageEditorControl
 
New Post
1/3/2007 11:14 AM
 
I have also noticed that when you use the dnn paging control, you cannot have multiple girds on the same page.

Erik Hinds
Risdall Marketing Group
#1 Web Design Agency in the World

www.risdall.com | www.risdall.net | erik AT risdall DOT-COM

 
New Post
1/4/2007 1:46 AM
 
Thanks for your thoughts - it just seems really clumsy as if you have ANY control on a page that uses it you have to manually do query hacking to maintain their state.

I am working on an Advanced Search and I'm going to have to pass in the value and DDL value of every control so that the selected values are persisted when it requests the page again! Seems to be counter-productive to the ASP.NET page life-cycle somewhat.

There are a few more bugs in the core search then - the DDL does not keep it's value and the search string is not written back to the search textbox when it is requested again.

Thanks,
Rodney
Smart-Thinker - Home of SmartSocial - the 100% Free DotNetNuke Social Networking Product Suite
Do use DNN a lot? Try the DotNetNuke Toolbar to save you time!
PokerDIY - Example Implementation of DNN Social Network
 
New Post
1/5/2007 10:00 AM
 
I recently ran into the same limitation. Now I’m debating whether to write my own adaptation, enable the DataGrid’s paging UI or try to work with the DNN page control. The paging control is a template control. It would be nice if it supported custom templates for page indexes, first and last buttons. Then we could use the control and bind whatever type of control we want to the page index, i.e. a LinkButton.

In the past I ran into a similar problem with the DNN Wizard control. I think the DNN controls are designed to work in a specific context. When I try to use the controls outside of that context I run into problems.

Qualtiy DotNetNuke modules and custom development; we've been serving the DNN community for over 2 years and have hundreds of satisfied customers. Let us serve you today.
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Using the core DNN Pager controlUsing the core DNN Pager control


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

Attend A Webinar
Try An Online Demo
Download DotNetNuke Professional Edition Trial
Have Someone Contact Me

Like Us on Facebook Join our Network on LinkedIn Follow DNN Corporate on Twitter Follow DNN on Twitter

Advertisers

DotNetNuke Scoop!

Sponsors

DotNetNuke Corporation

DotNetNuke Corp. is the steward of the DotNetNuke open source project, the most widely adopted Web Content Management Platform for building web sites and web applications on Microsoft .NET. Organizations use DotNetNuke to quickly develop and deploy interactive and dynamic web sites, intranets, extranets and web applications. The DotNetNuke platform is available in a free Community and subscription-based Professional and Enterprise Editions with an Elite Support option. DotNetNuke Corp. also operates Snowcovered.com where users purchase third party apps for the platform.