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

Problems with Button Click Event

Scheduled Pinned Locked Moved Web Development
htmldatabasequestion
4 Posts 2 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.

    B L 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.

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

      I think i have miss post this question I will post it under the ASP.Net forum Kurt

      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.

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        can you provide more detail ?? Like what type of control you are using, custom control, user control, etc..... And what exactly you want on second page that is not happened after you copy control and code from first page. (Which is working on first page)

        Jinal Desai

        B 1 Reply Last reply
        0
        • L Lost User

          can you provide more detail ?? Like what type of control you are using, custom control, user control, etc..... And what exactly you want on second page that is not happened after you copy control and code from first page. (Which is working on first page)

          Jinal Desai

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

          Thanks for the reaction. I'm using controls designed by DevXpress, so i did a search on there forums as well. While there I stumble onto a similar problem. The problem could lay in a databinding control which could prevent events from firing. This second page exists out of a tab control with 4 pages. When I remove the 2 last pages the control starts working. So my best guess is that one off the bindings onto those pages misbehave. Thanks anyway

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

          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