Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Pagining Control redirects to default user controlPagining Control redirects to default user control
Previous
 
Next
New Post
5/28/2009 5:44 AM
 

Hello everyone.

I'm stuck on a problem and I'm really hoping someone can help me with. I've searched for the answer but cant find anything.

I have a module that has two pages (controls): Page A is the main page. It does not have a key and is first displayed when the module is loaded. Page has a link to page B. Page B has a key configured. On Page B I have a PagingControl configured to display data from the database. The paging control loads data correctly, displays everything, everything works fine, UNTIL you try to go to any page other then the first page. When I click any of the numbers or "last" it redirects to default.ascx (which is page A).

If I put the same code on Page A it works 100%,and the paging works fine.

Hence the question: Has anyone else experienced problems with this before? Is it possible to put a pagining control on a page different then the main page? Any suggestions would be great.

Thanks

M

 
New Post
6/2/2009 5:25 AM
 

Hi Macio,

i have the same problem. I think the reason for this is the CreateURL method in the PagingControl.

It generates a link via NavigateURL, but the ControlKey property is not included. For me this is a huge problem as I use the paging control inside a control which is referenced by key. Is there any solution for that problem, or do I have to rewrite everything, as the method is not overridable...

 
New Post
6/2/2009 7:49 AM
 

Hi Macio,

 

i just resolved the problem.

You have to use the QuerystringParams property of the pagingcontrol and attach the ctl property.  Like ctl=YourControlKeyHere

 
New Post
6/3/2009 5:22 AM
 

Hi Matze,

I log in to post the solution and find your reply. Yes you are 100% right on target. "ctl=[controlname]" needs to be added. I also had an issue with the module id missing so added "&mid="+ ModuleId to the QueryStringParms and it works like a charm!

Thanks for the post either way! Good job!

Macio

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Pagining Control redirects to default user controlPagining Control redirects to default user control


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, 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 DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out