473,670 Members | 2,262 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="tabButto n" id="cmdGenSetup " align="left"
width="140" type="button" value="General Info" name="cmdReqFie lds"
runat="server">
</td>
</tr>
<tr>
<td align="right" style="PADDING-LEFT: 10px; PADDING-TOP:
5px">
<INPUT class="tabButto n" id="cmdConnSetu p" align="left"
width="140" type="button" value="Connecti on Setup" name="cmdOptFie lds"
runat="server">
</td>
</tr>
<tr>
<td align="right" style="PADDING-LEFT: 10px; PADDING-TOP:
5px">
<INPUT class="tabButto n" id="cmdTrxSetup " align="left"
width="140" type="button" value="Transact ion Setup" runat="server"
name=cmdOptFiel ds1>
</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 4089
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.goo gle.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="tabButto n" id="cmdGenSetup " align="left"
width="140" type="button" value="General Info" name="cmdReqFie lds"
runat="server">
</td>
</tr>
<tr>
<td align="right" style="PADDING-LEFT: 10px; PADDING-TOP:
5px">
<INPUT class="tabButto n" id="cmdConnSetu p" align="left"
width="140" type="button" value="Connecti on Setup" name="cmdOptFie lds"
runat="server">
</td>
</tr>
<tr>
<td align="right" style="PADDING-LEFT: 10px; PADDING-TOP:
5px">
<INPUT class="tabButto n" id="cmdTrxSetup " align="left"
width="140" type="button" value="Transact ion Setup" runat="server"
name=cmdOptFiel ds1>
</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="tabButto n" id="cmdGenSetup " align="left"
width="140" type="button" value="General Info" name="cmdReqFie lds"
runat="server"> </td> </tr>
<tr>
<td align="right" style="PADDING-LEFT: 10px; PADDING-TOP: 5px">
<INPUT class="tabButto n" id="cmdConnSetu p" align="left" width="140"
type="button" value="Connecti on Setup" name="cmdOptFie lds"
runat="server"> </td>
</tr>
<tr>
<td align="right" style="PADDING-LEFT: 10px; PADDING-TOP: 5px">
<INPUT class="tabButto n" id="cmdTrxSetup 1" align="left" width="140"
type="button" value="Transact ion Setup" name="cmdOptFie lds"
runat="server">
</td>
</tr>
</table>
</td>
<td >
<div>
<!-- some other code in here --> </div>
</td>
</tr>
</table>
</form>
"CT" <ca******@spamm ersgowaydotnets ervices.biz> wrote in message news:<eh******* *******@tk2msft ngp13.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.c om (David) wrote in message news:<c1******* *************** ****@posting.go ogle.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="tabButto n" id="cmdGenSetup " align="left"
width="140" type="button" value="General Info" name="cmdReqFie lds"
runat="server">
</td>
</tr>
<tr>
<td align="right" style="PADDING-LEFT: 10px; PADDING-TOP:
5px">
<INPUT class="tabButto n" id="cmdConnSetu p" align="left"
width="140" type="button" value="Connecti on Setup" name="cmdOptFie lds"
runat="server">
</td>
</tr>
<tr>
<td align="right" style="PADDING-LEFT: 10px; PADDING-TOP:
5px">
<INPUT class="tabButto n" id="cmdTrxSetup " align="left"
width="140" type="button" value="Transact ion Setup" runat="server"
name=cmdOptFiel ds1>
</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
12485
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 the onClick command. It always commits the CGI action, and skip the URL redirect part. The example code is below <form action=mycgi.pl> <input type='submit' name=submit value='Submit' onClick="window.location.href='http://myserver.com'">...
4
5971
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 it? I can only get it to work by clicking the button... Thanks, Pieter
4
1344
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 textbox so that if the user presses enter it will cause the textbox text changed event handler to fire. I have been able to set up the text box to fire the event handler for the textbox when clicking outside of the textbox, but if the user decides...
5
1500
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 like this: Form1 Form2 Form3 Form4 Important: Only form4.aspx has a submit button, none of the other 3 forms has any kind of submit or 'next step' button.
7
7926
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 should use winapi and the interop services, but I cant quite set the code up to work. Ive managed to get the window focus so far with winapi, so all I need to do is execute a specific button. any know how to do this when I click the button on my...
10
2617
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 need to click the radio button twice for it to be saved correctly. Any idea on what to use? I think the code should be fairly simple but I am missing it for some reason.
1
1278
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 procedure. There is a dialog, and if the user clicks on the "OK" button, an extra column should be appended to the grid. BTW, a separate stored procedure is used to get data including this extra column.
5
1913
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 instead of the user needing to hit a SUBMIT button each time the form within a tab is complete (Before clicking the next tab), I want clicking any tab to submit the data. I'm affraid that by not doing this, people will fill out the data in tab 1,...
2
12426
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 into converting into code.
0
8386
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8592
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
8661
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...
1
6213
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4211
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4391
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2800
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
2
2042
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1794
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.