• Login
  • Register

DNN Forums

A community discussion page. We're starting from scratch, so...let's get the party started!

DNN:Pagingcontrol ascx file

You are not authorized to post a reply.
Sort:


New Member


Posts:18
New Member

    Hello,

    I want to edit the ascx file for the pagingcontrol because it appears like this:

    Notice the "Page 1 of 4" and the "First..." sticks together, and it is really annoying to look at. But when i tried to look for the pagingcontrol file to try to edit it, I cannot find it anywhere.

    How can i edit the pagingcontrol file?

    Thanks.



    Veteran Member


    Posts:485
    Veteran Member

      Where does this occur?
      Joe Craig
      DNN MVP
      Patapsco Research Group


      New Member


      Posts:18
      New Member

        Posted By Joe Craig on 25 Jun 2020 01:04 AM
        Where does this occur?

        This occurs in one of my modules that is using this line of code:

        <dnn:pagingcontrol id=ctlPagingControl runat="server">dnn:pagingcontrol>

         

        in the source code, but I do not know where I can find this dnn:pagingcontrol and edit it.

         

         



        Veteran Member


        Posts:333
        Veteran Member

          It's a web control, not a web user control. Therefore it can be found in the file DotNetNuke.dll. Find the source code here.

          To change it:

          1. Create an issue
          2. Wait until someone feels responsive for the change and leave it. Or:
          3. If you don't want to wait: Fork the platform, correct the code and start a pull request.

          Happy DNNing!
          Michael

          Michael Tobisch
          DNN★MVP

          dnnWerk Austria
          DNN Usergroup für den deutschsprachigen Raum
          DNN Connect


          Veteran Member


          Posts:485
          Veteran Member

            You will also find it in the DNN Documentation at https://dnndocs.com/api/DotNetNuke.UI.WebControls.PagingControl.html

            Take a look at the HTML that the code produces on your page. You should find some CSS classes that you can use to adjust the appearance of the pager. That will be a lot simpler than rewriting the code.

            If you Google "dnn paging control" you will find a lot of references. The one by MaxiomTech is a good start. I also saw a reference to DotNetNuke 5.4 Cookbook with an example that goes into a lot of detail on using the control.
            Joe Craig
            DNN MVP
            Patapsco Research Group
            You are not authorized to post a reply.

            These Forums are dedicated to discussion of DNN Platform.

            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.

            Would you like to help us?

            Awesome! Simply post in the forums using the link below and we'll get you started.

            Get Involved