473,388 Members | 1,376 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,388 software developers and data experts.

button does not work upon clicking

Hi,

I have 3 buttons on a asp.net page. They are exactly the same except
for the name. Two of the buttons works but the third one does not
respond to the clicking. Here is the code:

<tr>
<td align="right" style="PADDING-LEFT: 10px; PADDING-TOP:
5px">
<INPUT class="tabButton" id="cmdGenSetup" align="left"
width="140" type="button" value="General Info" name="cmdReqFields"
runat="server">
</td>
</tr>
<tr>
<td align="right" style="PADDING-LEFT: 10px; PADDING-TOP:
5px">
<INPUT class="tabButton" id="cmdConnSetup" align="left"
width="140" type="button" value="Connection Setup" name="cmdOptFields"
runat="server">
</td>
</tr>
<tr>
<td align="right" style="PADDING-LEFT: 10px; PADDING-TOP:
5px">
<INPUT class="tabButton" id="cmdTrxSetup" align="left"
width="140" type="button" value="Transaction Setup" runat="server"
name=cmdOptFields1>
</td>
</tr>

The Event handling code is also very similare except for the name.
Please help me to find out why the third button does not working.
Thanks!

David
Nov 17 '05 #1
3 4072
CT
Hard to say from what you posted. Did you by accident delete the code for
the button that doesn't work, does it not post back to server, or did you
accidentally "detach" the event handler for the click event?

--
Carsten Thomsen
Enterprise Development with Visual Studio .NET, UML, and MSF
http://www.apress.com/book/bookDisplay.html?bID=105
"David" <hu*****@yahoo.com> wrote in message
news:c1**************************@posting.google.c om...
Hi,

I have 3 buttons on a asp.net page. They are exactly the same except
for the name. Two of the buttons works but the third one does not
respond to the clicking. Here is the code:

<tr>
<td align="right" style="PADDING-LEFT: 10px; PADDING-TOP:
5px">
<INPUT class="tabButton" id="cmdGenSetup" align="left"
width="140" type="button" value="General Info" name="cmdReqFields"
runat="server">
</td>
</tr>
<tr>
<td align="right" style="PADDING-LEFT: 10px; PADDING-TOP:
5px">
<INPUT class="tabButton" id="cmdConnSetup" align="left"
width="140" type="button" value="Connection Setup" name="cmdOptFields"
runat="server">
</td>
</tr>
<tr>
<td align="right" style="PADDING-LEFT: 10px; PADDING-TOP:
5px">
<INPUT class="tabButton" id="cmdTrxSetup" align="left"
width="140" type="button" value="Transaction Setup" runat="server"
name=cmdOptFields1>
</td>
</tr>

The Event handling code is also very similare except for the name.
Please help me to find out why the third button does not working.
Thanks!

David

Nov 17 '05 #2
The followings are the code. Most of the irrelevant code are removed
to make the reading easier. I also viewed the source code of this page
from IE and found that only the first two buttons has onclick methods.
Thanks for any help!!
<form id="Setup" method="post" runat="server">
<table>
<tr>
<td >
<table>
<tr>
<td>
<INPUT class="tabButton" id="cmdGenSetup" align="left"
width="140" type="button" value="General Info" name="cmdReqFields"
runat="server"> </td> </tr>
<tr>
<td align="right" style="PADDING-LEFT: 10px; PADDING-TOP: 5px">
<INPUT class="tabButton" id="cmdConnSetup" align="left" width="140"
type="button" value="Connection Setup" name="cmdOptFields"
runat="server"> </td>
</tr>
<tr>
<td align="right" style="PADDING-LEFT: 10px; PADDING-TOP: 5px">
<INPUT class="tabButton" id="cmdTrxSetup1" align="left" width="140"
type="button" value="Transaction Setup" name="cmdOptFields"
runat="server">
</td>
</tr>
</table>
</td>
<td >
<div>
<!-- some other code in here --> </div>
</td>
</tr>
</table>
</form>
"CT" <ca******@spammersgowaydotnetservices.biz> wrote in message news:<eh**************@tk2msftngp13.phx.gbl>...
Not at all sure what's going on here. Are you sure the third button is
contained in the form? Perhaps if we can see the full page, it might be
easier. Be careful, if the page is too big, don't paste it into your reply,
rather send it directly to me.

Nov 17 '05 #3
Can you post your eventhandlers?

Dawn.
hu*****@yahoo.com (David) wrote in message news:<c1**************************@posting.google. com>...
Hi,

I have 3 buttons on a asp.net page. They are exactly the same except
for the name. Two of the buttons works but the third one does not
respond to the clicking. Here is the code:

<tr>
<td align="right" style="PADDING-LEFT: 10px; PADDING-TOP:
5px">
<INPUT class="tabButton" id="cmdGenSetup" align="left"
width="140" type="button" value="General Info" name="cmdReqFields"
runat="server">
</td>
</tr>
<tr>
<td align="right" style="PADDING-LEFT: 10px; PADDING-TOP:
5px">
<INPUT class="tabButton" id="cmdConnSetup" align="left"
width="140" type="button" value="Connection Setup" name="cmdOptFields"
runat="server">
</td>
</tr>
<tr>
<td align="right" style="PADDING-LEFT: 10px; PADDING-TOP:
5px">
<INPUT class="tabButton" id="cmdTrxSetup" align="left"
width="140" type="button" value="Transaction Setup" runat="server"
name=cmdOptFields1>
</td>
</tr>

The Event handling code is also very similare except for the name.
Please help me to find out why the third button does not working.
Thanks!

David

Nov 17 '05 #4

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

Similar topics

2
by: Hongyu | last post by:
I am trying to implement a simple JavaScript of redirecting my window to a new URL upon clicking a submit button. This is an easy task except when I have to put an input type='submit' in front of...
4
by: Pieter Linden | last post by:
In Access 2000, I would have sworn I could see the controltiptext of a button without clicking on it. Can this still be done in AccessXP? If so, does someone have a code snippet showing how to do...
4
by: Tim Meagher | last post by:
I am finding some odd behavior. When clicking in a textbox, I find that the focus is resorting to a different button on my web page, not to the textbox.. I would like the focus to remain on the...
5
by: antonyliu2002 | last post by:
I have 4 forms each on a separate page respectively form1.aspx, form2.aspx, form3.aspx, form4.aspx. On top of each of the four pages there are 4 links which link to the aforementioned 4 pages...
7
by: blah | last post by:
Hello everyone, my program is supposed to click a button on another application when I click a button on my application. If I use a spy program to get its identity, how can I do this? I know I...
10
by: Scuba Rob | last post by:
I am having problems on getting the radio button to work with my.settings correctly. I want the program to check to see which one was last saved to use at startup. The closest I have come is that I...
1
by: Fir5tSight | last post by:
Hi All, This seems to be a difficult problem for me. Hope you can help me out... I have a program whose major part is a grid that displays several columns from data obtained from a stored...
5
by: Alex | last post by:
Hello, I hope I can explain this properly. I'm writing an application with a tabbed-based navigation, and a form which gets filled out by users will be split into 5 subtabs. What I need is...
2
by: Eric Layman | last post by:
Hi, I have a radio button and a combo box. Upon changing a value for radio button, the combo box values will be dynamically updated. I have an idea on how to go abt doing it but Im stuck...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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.