473,473 Members | 1,994 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Button control _Click event not firing

Max
For some reason my button control just stopped working. In debug mode I
found the _Click event is just not firing. When I click submit, the page
just refreshes. Any idea what's going on?

-Max
Nov 18 '05 #1
3 2239
check the InitializeComponent() section..
I have a problem where my events keep vanishing and that's the result....

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Max" <ma*****@portvista.com> wrote in message
news:f4**********************@twister.tampabay.rr. com...
For some reason my button control just stopped working. In debug mode I
found the _Click event is just not firing. When I click submit, the page
just refreshes. Any idea what's going on?

-Max

Nov 18 '05 #2
check to make sure you didn't accidentally remove the line:

this.Button1.Click += new System.EventHandler(this.Button1_Click);

from your InitializeComponent() function. also - check to make sure you
didn't change the name of the button while the editor wasn't looking.

John

"Max" <ma*****@portvista.com> wrote in message
news:f4**********************@twister.tampabay.rr. com...
For some reason my button control just stopped working. In debug mode I
found the _Click event is just not firing. When I click submit, the page
just refreshes. Any idea what's going on?

-Max
Nov 18 '05 #3
Max
I think that was it... I read something about code disappearing being a
common bug in VS.NET. Someone said turn off code reformatting to fix this.

I'm not sure if it was the InitializeComponent sub though... what I think
what disappeared was the "Handles bSubmit.Click" specifying the button's
event sub.

InitializeComponent is currently empty:
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub

-Max

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote
check the InitializeComponent() section..
I have a problem where my events keep vanishing and that's the result....


Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Aymer | last post by:
i created a new button object. how do i attach an event on it? thanx for your help. Dim cc As ColorConverter = new ColorConverter() Dim b = new button() b.ID = "SelectedDate" b.BorderStyle...
14
by: tshad | last post by:
I posted this on the asp.net group, also. I wasn't sure whether this was an asp.net problem or a javascript problem. I have a page that was originally created from a program I found on the net...
0
by: manu_srinivasa | last post by:
:( Here is my design, we have user control placed in a aspx page. within user control, i am having datalist, within datalist i am placing radio button. On click of radio button, i need to...
2
by: ~~~ .NET Ed ~~~ | last post by:
I have a problem (don't we all?). I have a web form with multiple modules, some of these modules have an ASP.NET (server run) button. OK, now I have UserControlX which has one such button (say...
6
by: murl | last post by:
I have built a Web Custom Control using c#, and it's pretty simple. A dropdownlist, and a button that once clicked will render different html. I tried attaching an event handler to the Click event...
5
by: csgraham74 | last post by:
Hi guys, I posted regarding this issue the other day but i still dont have an answer to my problem. Basically i have imported asp.net pages from dreamweaver into visual studio. Ive added a...
3
by: Jay | last post by:
I am on the 2.0 framework and have run the c:\windows\microsoft.net \framework\v1.1.4322\aspnet_regiis.exe -c and had no success. About half of the buttons on my webforms are firing and the other...
6
by: Dean Slindee | last post by:
When you drop a button on a form, a Click event is created by the designer. Within the Click event certain event parameters are defined: Private Sub btnInsert_ButtonPressed(ByVal sender As...
5
by: Tony | last post by:
I am continuing to develop an Access 2007 application which was originally converted from Access 2003. In Access 2003 I was able to disable the Access Close button in the top righthand corner of...
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
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,...
1
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.