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.0repeater with paginationrepeater with pagination
Previous
 
Next
New Post
3/3/2009 3:44 PM
 

I am building a module as a learning project and want to use pagination on a repeater control. Since i'm not to familiar with the dotnetnuke built in classes and am still learning how things work i'm kinda confused. So i kinda hope someone could explain things to me or point me to the right direction / guide. Or if you could provide sample code.. that would be ideal :P

thx in advance

 
New Post
3/5/2009 4:41 PM
 

I found out that DNN comes with a custom pagination control. so i am all set. For everyone who doesn't know how to make use of it.. this is how i used it:

Codebehind:
Dim oPagedDs As New PagedDataSource
Dim iPagesize As Integer
Dim iCurrentpage As Integer
iPagesize = 5

oPagedDs.DataSource = oEntries
oPagedDs.AllowPaging = True
oPagedDs.PageSize = iPagesize
oPagedDs.CurrentPageIndex = iCurrentpage - 1

rptEntries.DataSource = oPagedDs
rptEntries.DataBind()

If iPagesize = 0 OrElse oEntries.Count <= iPagesize Then
 ctlPagingControlBottom.Visible = False
Else
 ctlPagingControlBottom.Visible = True
 With ctlPagingControlBottom
  .TotalRecords = oEntries.Count
  .PageSize = iPagesize
  .CurrentPage = iCurrentpage
  .TabID = TabId
 End With
End If

Markup:
You will need to register the following webcontrol assembly at the top of your markup file.
<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.UI.Webcontrols" Assembly="DotNetNuke"%>

And add the webcontrol to the same page like so:
<dnn:PagingControl id="ctlPagingControlBottom" runat="server"></dnn:PagingControl>

If anyone sees some dirty coding or has other comments please respond. Am not that much of a pro :P

Problem solved i think..

 
New Post
7/4/2012 6:05 PM
 
hi!!! this problem pass me too, but I found this solution

https://sites.google.com/site/lagaterainformatica/home/-net/-net-c-/-generico/-control-fileupload/-solucion-fileupload-para-dnn-5

however don´t work , pliss help!!!
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0repeater with paginationrepeater with pagination


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