button does not work upon clicking

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
 
C

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?
 
D

David

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>
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top