Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Why is the Repeater Control Uploads...

Why is the Repeater Control Uploads...

Scheduled Pinned Locked Moved ASP.NET
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Vimalsoft Pty Ltd
    wrote on last edited by
    #1

    Good Day All i have a repeater control that i bind with 10 000 records and it handles it nicely and its defined like this

    ID

    Recipient

    Possible Bank

    Amount

                                    <%# Eval("DONATIONS\_ID") %>
                                
    
                                
    
                                    <%# Eval("Name") %>
                                
    
                                
    
                                    <%# Eval("LU\_BANKS\_NAME") %>
    

    R <%#string.Format("{0:n}",Eval("AMOUNT")).Replace(".00","") %>

    When the Button Donate is clicked it fires the OnItemCommand event that is defined like this

    protected void rptDonationList_ItemCommand(object source, RepeaterCommandEventArgs e)
    {
    if (e.CommandName == "Donate")
    {
    string[] data = e.CommandArgument.ToString().Split('|');
    Session["PaymentAmount"] = data[0];
    Session["PaymentforUserId"] = data[1];
    Session["DonationId"] = data[2];
    Session["RemainingDonationAmount"] = data[3];

    Richard DeemingR Kornfeld Eliyahu PeterK 2 Replies Last reply
    0
    • V Vimalsoft Pty Ltd

      Good Day All i have a repeater control that i bind with 10 000 records and it handles it nicely and its defined like this

      ID

      Recipient

      Possible Bank

      Amount

                                      <%# Eval("DONATIONS\_ID") %>
                                  
      
                                  
      
                                      <%# Eval("Name") %>
                                  
      
                                  
      
                                      <%# Eval("LU\_BANKS\_NAME") %>
      

      R <%#string.Format("{0:n}",Eval("AMOUNT")).Replace(".00","") %>

      When the Button Donate is clicked it fires the OnItemCommand event that is defined like this

      protected void rptDonationList_ItemCommand(object source, RepeaterCommandEventArgs e)
      {
      if (e.CommandName == "Donate")
      {
      string[] data = e.CommandArgument.ToString().Split('|');
      Session["PaymentAmount"] = data[0];
      Session["PaymentforUserId"] = data[1];
      Session["DonationId"] = data[2];
      Session["RemainingDonationAmount"] = data[3];

      Richard DeemingR Offline
      Richard DeemingR Offline
      Richard Deeming
      wrote on last edited by
      #2

      10,000 records on one page?! Do you seriously think anyone is going to look through that many records to find the one they want? :wtf: If a user can look at and discard one record every second, it would take them almost three hours to look through your list. And that's assuming they don't make a mistake, miss the record they're looking for, and have to start again. Also, since you're using WebForms, you're going to have an enormous ViewState, which is almost certainly why your page takes so long to load and to post back. Split the data into pages of a reasonable size, and give the user tools to filter the list to find the record they want.


      "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

      "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

      V 1 Reply Last reply
      0
      • Richard DeemingR Richard Deeming

        10,000 records on one page?! Do you seriously think anyone is going to look through that many records to find the one they want? :wtf: If a user can look at and discard one record every second, it would take them almost three hours to look through your list. And that's assuming they don't make a mistake, miss the record they're looking for, and have to start again. Also, since you're using WebForms, you're going to have an enormous ViewState, which is almost certainly why your page takes so long to load and to post back. Split the data into pages of a reasonable size, and give the user tools to filter the list to find the record they want.


        "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

        V Offline
        V Offline
        Vimalsoft Pty Ltd
        wrote on last edited by
        #3

        Hi Richard Thanks for your reply. There is paging on the repeater and there is no perfomance issue on the repeater. The only thing that im asking is why does it say "Uploading..." where else in the itemcommand im just assigning some sessions and redirecting? What i must also mention is that locally connected the online domain it has no issue.

        Vuyiswa Maseko, Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code. C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vimalsoft.com vuyiswa[at]vimalsoft.com

        1 Reply Last reply
        0
        • V Vimalsoft Pty Ltd

          Good Day All i have a repeater control that i bind with 10 000 records and it handles it nicely and its defined like this

          ID

          Recipient

          Possible Bank

          Amount

                                          <%# Eval("DONATIONS\_ID") %>
                                      
          
                                      
          
                                          <%# Eval("Name") %>
                                      
          
                                      
          
                                          <%# Eval("LU\_BANKS\_NAME") %>
          

          R <%#string.Format("{0:n}",Eval("AMOUNT")).Replace(".00","") %>

          When the Button Donate is clicked it fires the OnItemCommand event that is defined like this

          protected void rptDonationList_ItemCommand(object source, RepeaterCommandEventArgs e)
          {
          if (e.CommandName == "Donate")
          {
          string[] data = e.CommandArgument.ToString().Split('|');
          Session["PaymentAmount"] = data[0];
          Session["PaymentforUserId"] = data[1];
          Session["DonationId"] = data[2];
          Session["RemainingDonationAmount"] = data[3];

          Kornfeld Eliyahu PeterK Offline
          Kornfeld Eliyahu PeterK Offline
          Kornfeld Eliyahu Peter
          wrote on last edited by
          #4

          1. Does the 'upload' happening before, or after the event raised? I think you do not hit the server side until the 'upload' is at 100%, so it somehow related to the postback... 2. Put a sniffer (Fiddler like) to see what actually passing on the lines... 3. how large the ViewState is? 4. It is browser specific? What browser?

          Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

          "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

          V 1 Reply Last reply
          0
          • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

            1. Does the 'upload' happening before, or after the event raised? I think you do not hit the server side until the 'upload' is at 100%, so it somehow related to the postback... 2. Put a sniffer (Fiddler like) to see what actually passing on the lines... 3. how large the ViewState is? 4. It is browser specific? What browser?

            Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

            V Offline
            V Offline
            Vimalsoft Pty Ltd
            wrote on last edited by
            #5

            The Problem has been resolved. This is a good lesson. The problem was that my web application was running in an https IIS server in which my application was using Bootstrap that has fonts which was outside my server with a http not https control. i removed and copied all the files to the local server. So it looked like the system was slow but it was not , there was no error it was just blocking the user from moving forward. i hope this helps someone else

            Vuyiswa Maseko, Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code. C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vimalsoft.com vuyiswa[at]vimalsoft.com

            Kornfeld Eliyahu PeterK 1 Reply Last reply
            0
            • V Vimalsoft Pty Ltd

              The Problem has been resolved. This is a good lesson. The problem was that my web application was running in an https IIS server in which my application was using Bootstrap that has fonts which was outside my server with a http not https control. i removed and copied all the files to the local server. So it looked like the system was slow but it was not , there was no error it was just blocking the user from moving forward. i hope this helps someone else

              Vuyiswa Maseko, Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code. C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vimalsoft.com vuyiswa[at]vimalsoft.com

              Kornfeld Eliyahu PeterK Offline
              Kornfeld Eliyahu PeterK Offline
              Kornfeld Eliyahu Peter
              wrote on last edited by
              #6

              Are you saying that mixed content (http/https) was blocking the pages? Browser should have to show a warning about that... In any case the solution is to create protocol-less links (using cdn is a good thing and in most cases better than local copy)...

              Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

              "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

              V 1 Reply Last reply
              0
              • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                Are you saying that mixed content (http/https) was blocking the pages? Browser should have to show a warning about that... In any case the solution is to create protocol-less links (using cdn is a good thing and in most cases better than local copy)...

                Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

                V Offline
                V Offline
                Vimalsoft Pty Ltd
                wrote on last edited by
                #7

                Yes i was even shocked when i saw this. The thing the page itself does not timeout or give an error the chrome developer toolbar showed me that the page is blocked due to the mixed content. After moving them locally it started moving like lightning fast.

                Vuyiswa Maseko, Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code. C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vimalsoft.com vuyiswa[at]vimalsoft.com

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups