Buttons Do Not React

Discussion in 'ASP .Net' started by =?Utf-8?B?SmltIEhlYXZleQ==?=, Jul 5, 2004.

  1. Hello, I had a web page which was working just fine. I then worked on making it comply with our corporate standards. To do so, I created 3 user controls, two for heading and one for the footer. One of these user controls has a button. After I get all done, when I bring up the page and press the button within the second user control, there is no response. The pressing of the button does not cause a server response at all. It is as if there was some edit which is failing on the client side, but there is not client script associated with this button.

    I placed another button on the web form (not in either of the user controls) to see if I could that button to respond, and I get the same results.

    The "corporate" standard information that I added has a number of buttons with javascript tied to those buttons. If I press one of "their" buttons without populating the required information, I can see a "error on page" error message in the bottom left corner of the screen.

    I am guess that the reason that it is failing has something to do with the corporate std stuff that I added, but I am not sure what to look for. If I do not have any javascript tied to these buttons, why would they be impacted with the existing javascript?

    Here is the code which was generated on the form for my button...

    <input type="submit" name="cmdGo" value="Retrieve" id="cmdGo" class="btn" style="width:60px;" />

    What should I be looking for? I made sure that the system associated the button with the event by ensuring the code for the event was there....

    this.cmdGo.Click += new System.EventHandler(this.cmdGo_Click);
     
    =?Utf-8?B?SmltIEhlYXZleQ==?=, Jul 5, 2004
    #1
    1. Advertising

  2. Jim,
    Review the source of the page and make sure the that the submit button is between a <form > and </form> tag. Also take a look at the form tag, see if there is an onsubmit handler ( ie <form onsubmit="return somefunction()">) if there is, see if you can figure out what somefunction() is doing.

    Brian

    "Jim Heavey" wrote:

    > Hello, I had a web page which was working just fine. I then worked on making it comply with our corporate standards. To do so, I created 3 user controls, two for heading and one for the footer. One of these user controls has a button. After I get all done, when I bring up the page and press the button within the second user control, there is no response. The pressing of the button does not cause a server response at all. It is as if there was some edit which is failing on the client side, but there is not client script associated with this button.
    >
    > I placed another button on the web form (not in either of the user controls) to see if I could that button to respond, and I get the same results.
    >
    > The "corporate" standard information that I added has a number of buttons with javascript tied to those buttons. If I press one of "their" buttons without populating the required information, I can see a "error on page" error message in the bottom left corner of the screen.
    >
    > I am guess that the reason that it is failing has something to do with the corporate std stuff that I added, but I am not sure what to look for. If I do not have any javascript tied to these buttons, why would they be impacted with the existing javascript?
    >
    > Here is the code which was generated on the form for my button...
    >
    > <input type="submit" name="cmdGo" value="Retrieve" id="cmdGo" class="btn" style="width:60px;" />
    >
    > What should I be looking for? I made sure that the system associated the button with the event by ensuring the code for the event was there....
    >
    > this.cmdGo.Click += new System.EventHandler(this.cmdGo_Click);
    >
    >
    >
    >
     
    =?Utf-8?B?YmNoYW5kbGV5?=, Jul 6, 2004
    #2
    1. Advertising

  3. =?Utf-8?B?SmltIEhlYXZleQ==?=

    Natty Gur Guest

    In adition to Brian replay,

    Page.SmartNavigation set to true could also cause this behaviour.

    Natty Gur[MVP]

    blog : http://weblogs.asp.net/ngur
    Mobile: +972-(0)52-8888377


    *** Sent via Devdex http://www.devdex.com ***
    Don't just participate in USENET...get rewarded for it!
     
    Natty Gur, Jul 6, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. diegomrosa
    Replies:
    1
    Views:
    409
    Robert Iver
    Jun 9, 2006
  2. Barry
    Replies:
    5
    Views:
    888
    Barry
    Jan 26, 2007
  3. Joe Kovac
    Replies:
    3
    Views:
    615
    Joe Kovac
    Jun 26, 2007
  4. Replies:
    8
    Views:
    410
    Rolf Magnus
    Jan 11, 2009
  5. elsjaako

    receive and react to MIDI input

    elsjaako, Jan 29, 2009, in forum: Python
    Replies:
    7
    Views:
    999
    elsjaako
    Feb 8, 2009
Loading...

Share This Page