button does not work upon clicking

  • Thread starter Thread starter David
  • Start date Start date
D

David

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
 
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?
 
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>
 
Back
Top