Hi all,
I have a strange problem. I have a button called btnSubmit on a .aspx
page. I have written btnSubmit_Click method in C# to handle the button's
click event. In the .aspx file, the onclick attribute is set as
onclick="btnSubmit_Click". This is the only place where I call the
btnSubmit_Click event handler. But when I run the application and click the
btnSubmit button, the btnSubmit_Click method get called twice.
Any idea?
Thanks...
-Nikhil 5 5435
Do you have "AutoEventWireup" in your page directive set to true? If so, remove it or set it to false.
Matt Hawley, MCAD .NET http://www.eworldui.net
Hi all,
I have a strange problem. I have a button called btnSubmit on a .aspx
page. I have written btnSubmit_Click method in C# to handle the button's
click event. In the .aspx file, the onclick attribute is set as
onclick="btnSubmit_Click". This is the only place where I call the
btnSubmit_Click event handler. But when I run the application and click the
btnSubmit button, the btnSubmit_Click method get called twice.
Any idea?
Thanks...
-Nikhil
Hi Matt,
AutoEventWireup is already set to false. Is there anything else I can
try?
Thanks...
"Matt Hawley" <mhawley@n!o!s!p!a!m.integrityts.com> wrote in message
news:OB**************@TK2MSFTNGP12.phx.gbl... Do you have "AutoEventWireup" in your page directive set to true? If so,
remove it or set it to false. Matt Hawley, MCAD .NET http://www.eworldui.net
Hi all, I have a strange problem. I have a button called btnSubmit on a .aspx page. I have written btnSubmit_Click method in C# to handle the button's click event. In the .aspx file, the onclick attribute is set as onclick="btnSubmit_Click". This is the only place where I call the btnSubmit_Click event handler. But when I run the application and click
the btnSubmit button, the btnSubmit_Click method get called twice. Any idea?
Thanks... -Nikhil
Nikhil,
Hmm, You stated that you have the OnClick set in HTML...if you view your C#/VB.NET code, is there also another wireup somewhere?
Matt Hawley, MCAD .NET http://www.eworldui.net
Hi Matt,
AutoEventWireup is already set to false. Is there anything else I can
try?
Thanks...
"Matt Hawley" <mhawley@n!o!s!p!a!m.integrityts.com> wrote in message
news:OB**************@TK2MSFTNGP12.phx.gbl... Do you have "AutoEventWireup" in your page directive set to true? If so,
remove it or set it to false. Matt Hawley, MCAD .NET http://www.eworldui.net
Hi all, I have a strange problem. I have a button called btnSubmit on a .aspx page. I have written btnSubmit_Click method in C# to handle the button's click event. In the .aspx file, the onclick attribute is set as onclick="btnSubmit_Click". This is the only place where I call the btnSubmit_Click event handler. But when I run the application and click
the btnSubmit button, the btnSubmit_Click method get called twice. Any idea?
Thanks... -Nikhil
Yes, I had another wireup in the code behind file. After I removed it, the
application worked fine.
Thanks...
-Nikhil
"Matt Hawley" <mhawley@n!o!s!p!a!m.integrityts.com> wrote in message
news:OA**************@TK2MSFTNGP09.phx.gbl... Nikhil,
Hmm, You stated that you have the OnClick set in HTML...if you view your
C#/VB.NET code, is there also another wireup somewhere? Matt Hawley, MCAD .NET http://www.eworldui.net
Hi Matt, AutoEventWireup is already set to false. Is there anything else I can try?
Thanks...
"Matt Hawley" <mhawley@n!o!s!p!a!m.integrityts.com> wrote in message news:OB**************@TK2MSFTNGP12.phx.gbl... > Do you have "AutoEventWireup" in your page directive set to true? If
so, remove it or set it to false. > > Matt Hawley, MCAD .NET > http://www.eworldui.net > > Hi all, > I have a strange problem. I have a button called btnSubmit on a .aspx > page. I have written btnSubmit_Click method in C# to handle the
button's > click event. In the .aspx file, the onclick attribute is set as > onclick="btnSubmit_Click". This is the only place where I call the > btnSubmit_Click event handler. But when I run the application and click the > btnSubmit button, the btnSubmit_Click method get called twice. > Any idea? > > Thanks... > -Nikhil > > >
Awesome, glad I could help!
Matt Hawley, MCAD .NET http://www.eworldui.net
Yes, I had another wireup in the code behind file. After I removed it, the
application worked fine.
Thanks...
-Nikhil
"Matt Hawley" <mhawley@n!o!s!p!a!m.integrityts.com> wrote in message
news:OA**************@TK2MSFTNGP09.phx.gbl... Nikhil,
Hmm, You stated that you have the OnClick set in HTML...if you view your
C#/VB.NET code, is there also another wireup somewhere? Matt Hawley, MCAD .NET http://www.eworldui.net
Hi Matt, AutoEventWireup is already set to false. Is there anything else I can try?
Thanks...
"Matt Hawley" <mhawley@n!o!s!p!a!m.integrityts.com> wrote in message news:OB**************@TK2MSFTNGP12.phx.gbl... Do you have "AutoEventWireup" in your page directive set to true? If
so, remove it or set it to false. Matt Hawley, MCAD .NET http://www.eworldui.net
Hi all, I have a strange problem. I have a button called btnSubmit on a .aspx page. I have written btnSubmit_Click method in C# to handle the
button's click event. In the .aspx file, the onclick attribute is set as onclick="btnSubmit_Click". This is the only place where I call the btnSubmit_Click event handler. But when I run the application and click the btnSubmit button, the btnSubmit_Click method get called twice. Any idea?
Thanks... -Nikhil This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Jason Kyle Baginski |
last post by:
Here's a little test app to demonstrate a problem I'm having.
It creates four buttons, each one with the different FlatStyle types
available. Three of them behave exactly the same way(and the...
|
by: Nikhil Patel |
last post by:
Hi all,
I have a strange problem. I have a button called btnSubmit on a .aspx
page. I have written btnSubmit_Click method in C# to handle the button's
click event. In the .aspx file, the onclick...
|
by: Dot net work |
last post by:
Hello.
I've read many posts about disabling submit buttons, but I can't get
these answers to solve my problem.
I have a server side asp.net button, and under the button I have code
behind...
|
by: mike parr |
last post by:
I have an button which calls its Click procedure twice when clicked.
This is my code :
public void btnAddToCartPersonal_Click(object sender,
System.Web.UI.ImageClickEventArgs e)
{
//validate...
|
by: Imran Aziz |
last post by:
Hello All,
I have a search text and button that post data and my button handler
filters the repeater control. However when the button is clicked the first
time. The page_load event is being called...
|
by: Diffident |
last post by:
Hello All,
I have an asp:button and I have tied an eventhandler to this button's click
event which means that the eventhandler should be executed everytime I click
the button. But to my...
|
by: jburkle |
last post by:
The following is the onclick method called when the "Renew" button is
clicked by the user in my Windows application:
.....
Private Sub cmdRenew_Click(ByVal eventSender As System.Object, ByVal...
|
by: mosscliffe |
last post by:
I am sorry but I am all very new and slow at understanding all this
ASP.NET2.
I found some code which showed how to page with a repeater. All very
excited as I had been looking for this all...
|
by: Jonathan Wood |
last post by:
Does anyone know of any reason a button on a master page would have no
effect?
I have a complex HTML page that I'm converting to ASP.NET, and acknowledge I
could have something odd that is...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
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...
|
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...
|
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,...
|
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...
|
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,...
|
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...
| |