473,788 Members | 2,843 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Buttons Do Not React

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:60 px;" />

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.Clic k += new System.EventHan dler(this.cmdGo _Click);


Nov 18 '05 #1
2 1415
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="retur n 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:60 px;" />

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.Clic k += new System.EventHan dler(this.cmdGo _Click);

Nov 18 '05 #2
In adition to Brian replay,

Page.SmartNavig ation 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!
Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1311
by: Tim | last post by:
Hi all, I would like people to be able to send emails with keywords in the subject line. I would then like my server/website/asp page to capture the email, parse the subject and react accordingly. Can anyone point me in the right direction? Not sure if it is an ASP issue, but that's the environment I'm working in.
1
1413
by: Serdge Kooleman | last post by:
i would like to write my event that will react on specific keys in my custom DataGrid (WinForms)... please help to do this. so far i have this custom grid... and i create it in main object namespace CustomGrid
2
1290
by: Achim Domma (Procoders) | last post by:
Hi, to allow my user to select from a list of values which are calculated on the fly, I tried to generate a list of LinkButton controls on the fly. But the connected event does not fire. Searching google I found out that the problem is caused by the structure of the ASP.Net event handling: The clicked button does not exist anymore after the postback, so no event could be fired.
2
1458
by: Kevin | last post by:
I have an ASP.Net site with a number of asp:button on it. When I run under localhost (Windows XP, VS 2003, Dotnet 1.1.4322), clicking these buttons works. However, transfering the site to a Windows 2000 server, IIS 5 machine also with Dotnet 1.1.4322, the buttons do not react. Looking at the html of the working and non working pages, I see that the non working page button has the following <input type="image" name="btnButton" onclick="if...
6
1497
by: Bjorn Sagbakken | last post by:
Hello In VS2005: I am adding buttons and textboxes dynamically into a table, that also dynamically expands. So far, so good, actually very nice. But I am having trouble starting the desired subroutine on postback. To me it seems like the button click event looks for a client script instead of going to the aspx codepage and execute the sub there. The same thing happens with textboxes, where I programatically add
2
5893
by: dpazza | last post by:
Hi, I'm creating a quiz on using a form in VB 2005 express. I have four sets of questions and answers (labels and radio buttons) and I change between which set of questions is currently shown on the form by changing the visible state of the radio buttons and labels utilising back and next buttons. E.g. Next button makes current radio buttons and labels invisible and
2
2177
by: Joe Kovac | last post by:
Hi! I have many pages that expect query strings. One of the first things to do, should be to check if the values of the QueryString are valid. But how should I react on invalid/missing QueryStrings? Somehow the page itself should stop rendering any controls and just display an error message. How would I achieve this? Where should that be done? What are other possible solutions? Thanks
3
1760
by: 1051109210 | last post by:
<table class="special3" align="left" width="75%" height="65%" > <form> <table width="50%" align="center"> <tr align="right"> <td></td> <td><a href="http://geocities.com/blhc_69/testingignore.html">Logout</a></td> </tr>
1
1855
by: Clancyman | last post by:
Just putting together my site using Dreamweaver CS3. I have tested the page on IE and Safari locally and it is fine all Flash text and Buttons display and react as required. Once I upload the page and browse to it on line there are no flash text or buttons on the page ! Gerry
0
10366
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10175
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10112
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9969
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8993
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6750
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5536
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4070
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.