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.0Trouble paging GridviewTrouble paging Gridview
Previous
 
Next
New Post
11/27/2007 4:56 PM
 

Hi all again, i´ve been having trouble trying to gert a grivdiew to change page. i get the gridview loaded, i get the pages numbers, but when i click on any of the page numbers to go to there, it just refreshes the page, nothing more.

Heres my event:

protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
        {
            GridView1.PageIndex = e.NewPageIndex;
            GridView1.DataBind();
        }

 

This is hpow i´ve always managed the paging in regular asp pages, any sugestion will be more thatn welcome since im stuck here for a while now.

 

Tnks in advance

 

Farewell

 
New Post
11/27/2007 7:49 PM
 

Hi,

Check the module cache time first: module settings --> page settings --> cache time

You may set it to -1 for no chache.

Ricky.

 
New Post
11/28/2007 2:36 PM
 

HI alias, first of all thanks a lot for your response, the cache was in 0, and changed it to -1, still doesnt work. Any other ideas?

 

Tnks again

 

Farewell

 
New Post
12/2/2007 5:08 AM
 

Eh...

I am not sure if I am correct. Generally, you do not need to impl PageNumberChanged event handler and manually call the DataBind() method unless you must do something special in this handler, such as retrieve the sql filter. Maybe, you should post the complete code where your problem occurred.

Ricky.

 
New Post
12/2/2007 8:54 AM
 

If the code works when you are logged in as Administrator, set the Module Caching (in the Mdoule configuration settings for the module under the Host Menu) to 0 (this is different from page caching) .



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Trouble paging GridviewTrouble paging Gridview


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