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. Problems with Button Click Event

Problems with Button Click Event

Scheduled Pinned Locked Moved ASP.NET
htmldatabasequestion
6 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.
  • B Offline
    B Offline
    BadKarma
    wrote on last edited by
    #1

    Hi guys, I'm currently experiencing a strange phenomenon. I have a user-control which allows the user to add data into a list on clicking on the OK Button. On the page where I use this control all works fine. However, now I need to have a second page where i need to enter the same data. So I wanted to re-use the control. The control is shown but when I click on the OK button no event is trigger, nothing happens? I have put a break point in the PageLoad of the user-control, but it doesn't event get there. It seems like that the event if any is missing at all, althought that the html (client-side) code is the same. Does anyone have a thought, or knows a reason why this could happen? Thx, Kurt

    Learn from the mistakes of others, you may not live long enough to make them all yourself.

    J D 2 Replies Last reply
    0
    • B BadKarma

      Hi guys, I'm currently experiencing a strange phenomenon. I have a user-control which allows the user to add data into a list on clicking on the OK Button. On the page where I use this control all works fine. However, now I need to have a second page where i need to enter the same data. So I wanted to re-use the control. The control is shown but when I click on the OK button no event is trigger, nothing happens? I have put a break point in the PageLoad of the user-control, but it doesn't event get there. It seems like that the event if any is missing at all, althought that the html (client-side) code is the same. Does anyone have a thought, or knows a reason why this could happen? Thx, Kurt

      Learn from the mistakes of others, you may not live long enough to make them all yourself.

      J Offline
      J Offline
      Jamil Hallal
      wrote on last edited by
      #2

      can you post the html code, code behind so i can suggest a solution?

      Regards, Jamil

      B 1 Reply Last reply
      0
      • J Jamil Hallal

        can you post the html code, code behind so i can suggest a solution?

        Regards, Jamil

        B Offline
        B Offline
        BadKarma
        wrote on last edited by
        #3

        Thanks for the reaction, but the markup and the code behind is more then 2400 lines, The real problem is that is have inherited this project from some other company which failed to deliver on time. And now I have to 'Make it Work, ASAP'. Kurt

        Learn from the mistakes of others, you may not live long enough to make them all yourself.

        J 1 Reply Last reply
        0
        • B BadKarma

          Thanks for the reaction, but the markup and the code behind is more then 2400 lines, The real problem is that is have inherited this project from some other company which failed to deliver on time. And now I have to 'Make it Work, ASAP'. Kurt

          Learn from the mistakes of others, you may not live long enough to make them all yourself.

          J Offline
          J Offline
          Jamil Hallal
          wrote on last edited by
          #4

          Are you loading the UserControl dynamically? if yes then you must re-load it on Init event of the page. let me know if you need any further help.

          Regards, Jamil

          B 1 Reply Last reply
          0
          • J Jamil Hallal

            Are you loading the UserControl dynamically? if yes then you must re-load it on Init event of the page. let me know if you need any further help.

            Regards, Jamil

            B Offline
            B Offline
            BadKarma
            wrote on last edited by
            #5

            As far as i know the control isn't loaded dynamically.

            <visitcontrol:SimpleVisitorControl ID="BadgeControl1" runat="server" />
            

            Is used to get the control on the page. To show the Control it is call by a client side script.

            badgeCallbackPanel.PerformCallback("");
            

            Which is the same code as on the working page. On both pages the control is shown in a 'popup' but on one of the pages the OK button doesn't work.:mad:

            Learn from the mistakes of others, you may not live long enough to make them all yourself.

            1 Reply Last reply
            0
            • B BadKarma

              Hi guys, I'm currently experiencing a strange phenomenon. I have a user-control which allows the user to add data into a list on clicking on the OK Button. On the page where I use this control all works fine. However, now I need to have a second page where i need to enter the same data. So I wanted to re-use the control. The control is shown but when I click on the OK button no event is trigger, nothing happens? I have put a break point in the PageLoad of the user-control, but it doesn't event get there. It seems like that the event if any is missing at all, althought that the html (client-side) code is the same. Does anyone have a thought, or knows a reason why this could happen? Thx, Kurt

              Learn from the mistakes of others, you may not live long enough to make them all yourself.

              D Offline
              D Offline
              Dinesh Mani
              wrote on last edited by
              #6

              See if there are any event delegates that you have missed. May be the code expects you to catch the callback on the container page.

              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