473,387 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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: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);


Nov 18 '05 #1
2 1397
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);

Nov 18 '05 #2
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!
Nov 18 '05 #3

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

Similar topics

1
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...
1
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 ...
2
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. ...
2
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...
6
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...
2
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...
2
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...
3
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...
1
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...

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.