473,624 Members | 2,469 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Missing Event

I'm working on my first subclassed web control. What is driving me crazy is
that I can't get the click or the command event to fire. If I take the
parent class and put it on the web form (button) the parent class events
fire just fine, but the moment I subclass it, I can't get my subclassed
handler events to fire. I think it's being posted back before it triggers
that event - how do I overcome that?

tia!
Nov 20 '05 #1
2 1330
Are you declaring it "WithEvents " (Dim WithEvents myClass)? If not, it
won't respond (or be listening) for events.
"Alex B" <no*********@sp armerio.com> wrote in message
news:uw******** ******@TK2MSFTN GP12.phx.gbl...
I'm working on my first subclassed web control. What is driving me crazy is that I can't get the click or the command event to fire. If I take the
parent class and put it on the web form (button) the parent class events
fire just fine, but the moment I subclass it, I can't get my subclassed
handler events to fire. I think it's being posted back before it triggers
that event - how do I overcome that?

tia!

Nov 20 '05 #2
Are you declaring it "WithEvents " (Dim WithEvents myClass)? If not, it
won't respond (or be listening) for events.
"Alex B" <no*********@sp armerio.com> wrote in message
news:uw******** ******@TK2MSFTN GP12.phx.gbl...
I'm working on my first subclassed web control. What is driving me crazy is that I can't get the click or the command event to fire. If I take the
parent class and put it on the web form (button) the parent class events
fire just fine, but the moment I subclass it, I can't get my subclassed
handler events to fire. I think it's being posted back before it triggers
that event - how do I overcome that?

tia!

Nov 20 '05 #3

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

Similar topics

4
18043
by: dcarson | last post by:
I've read about this error in several other discussions, but still can't seem to pinpoint the problem with my code. Everything seemed to be working fine for some time, but it now tends to bomb out on me for some reason. The Summary field is pulled from a Rich Text Editor that allows HTML formatting and appears to be the culprit, but I just can't seem to figure out why. Any guidance is greatly appreciated. I'm connecting to an Access...
7
5364
by: Corepaul | last post by:
Missing Help Files When I enter "recordset" as the keyword and search the Visual Basic Help index, I get many topics of interest in the resulting list. But there isn't any information available from clicking on many of the available topics (mostly methods but some properties are also unavailable). This same problem occurs with many, if not most, keywords. Is there any way I can activate these "missing" help topics? HELP!
1
1479
by: Kun | last post by:
Hi there, I think vs.net missing default name for new form. Scenario: 1. I create new Window Application by default it give me Form1 2. I add Form2 3. In Form1_Load event I try to get form2 name what I get is empty string not Form2
5
1176
by: unwantedspam | last post by:
Hi All, What am I missing. I have trying to create a simple web based application. Basically there are three textboxes and two buttons (Save, Reset). I assume the code behind the save button should save the form information to the databaase. So my question is this: How do I notify the user the information has been saved? Do I have to redirect to another page or can I display a message. I would like to do the latter but I am not sure where...
3
3772
by: Brett | last post by:
I'm using a third part component in a certain app. The component has methods and events. I noticed one particular event was not firing after a while but it should have been. The problem was the "handles" part was missing. I didn't remove this that I know of. After putting this back in, the event started firing. Actually, the code inside the event wasn't firing but the "private sub eventname()" part was being hit. By putting a...
7
6751
by: Billy Angers | last post by:
My server is running under Windows SBS 2003. I've deleted some directories that was containing Outlook Web Access files, it was done few months ago by mistake. Now I want to use OWA for some distant users. So, I tried the procedure on the MS website: http://support.microsoft.com/?scid=kb%3Ben-us%3B883380&x=13&y=19 I've done all of the Method 1, but the files have not been re-created, and I get this Event: Event ID: 1047 Metabase Update...
19
2197
by: pamelafluente | last post by:
Hi Guys, I am trying to include my little script in my html report. I have done an external JS file which contains it. If you remember, you have helped me to detect if the asp page was present by using ajax. If not present is gracefully stay silent. The problem is now that when the JS is not present (and it can be) MSIE gives a lot of errors and one has to kill it.
2
1841
by: Jason | last post by:
A co worker of mine pointed out that we were missing the page level event properties icon (aka the lightening bolt). This is vs.net 2005 and if I open a web page in design mode apparently there should be in the Properties window a lightening bolt representing the page level events that we can double click and it'll set up the event code for us. If I view a page and add a button for example the bolt appears and I can click that and view...
11
11932
by: Jon Davis | last post by:
Does anyone know why using System.Diagnostics.Process to "wrap" a console application does not always transmit the I/O, depending on what processes you're trying to "consume"? PowerShell, for example, does not seem to process any I/O through the Process object. I know that in the case of PowerShell there are better ways to "wrap" the console by directly interfacing with the assemblies of System.Management.Automation or some similarly...
2
2283
by: markszlazak | last post by:
Could someone check out the following code and please help me understand the problem and fix it. It seems like some events are not firing when my mouse moves over the table cells to quickly causing some table cells to stay yellow when you move out of them instead of going back to blue. (Note that I'm using DIV's inside this table because the lightyellow one will contain an image that will be mousedowned on to start a cell selection mode...
0
8240
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8625
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8336
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
8482
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...
0
5565
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4177
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2610
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
1
1791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1487
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.