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

button has to be clicked twice for method to be called

Hi,

Having some touble with one of my buttons - EmptyCartBtn. When the button is clicked it appears as if nothing happens, but when it is clicked the second time, the associated method is called.

When i debug it, it looks as if it should work the first time around (ie it reaches the associated method) but in practice it doesnt.

In a nut shell, i have a sub routine EmptyCartBtn.click that calls a method in another code file. While it works, you have to click the button twice for it to work.

Very weird. Any ideas? Any help Much Appreciated!

Cheers
Matt
Oct 16 '06 #1
2 1304
Make sure that your function/sub procedure handles BUTTONNAME.Click

i.e.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
'Do some stuff here
End Sub
Oct 16 '06 #2
It could be that the site have to update before you see the changes.

test to click one time the refresh the site.
Oct 23 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Vincent | last post by:
Hello all, I have an application that has a ListView and a DataSet. When btnRemove is clicked, the method btnRemove_Click is being fired, which compares 2 keys to find a unique match on a...
0
by: Oz | last post by:
Hi Using VS.NET 2003, Windows XP SP1, We have a page which has been developed using ASP.NET. On it, is a button which when clicked is supposed to add some data to a table. When the button is...
3
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...
2
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...
9
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...
4
by: Ian Davies | last post by:
Hello I am struggling for a solution to clear some fields on my webpage that takes their values from some sessions My solution below works when the button is clicked twice. I sort of know why I...
1
by: mattyricho | last post by:
Hi, Having some touble with one of my buttons - EmptyCartBtn. When the button is clicked it appears as if nothing happens, but when it is clicked the second time, the associated method is called....
1
by: mattyricho | last post by:
Hi, Having some touble with one of my buttons - EmptyCartBtn. When the button is clicked it appears as if nothing happens, but when it is clicked the second time, the associated method is called....
9
by: Prakash Singh Bhakuni | last post by:
am replacing the default "Browse..." button for input type=file. This works fine except that the form will only submit after the SUBMIT button is clicked twice. Any ideas on why this is happening...
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: 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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
0
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...
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
Oralloy
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 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.