473,394 Members | 2,071 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,394 software developers and data experts.

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 1313
Are you declaring it "WithEvents" (Dim WithEvents myClass)? If not, it
won't respond (or be listening) for events.
"Alex B" <no*********@sparmerio.com> wrote in message
news:uw**************@TK2MSFTNGP12.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*********@sparmerio.com> wrote in message
news:uw**************@TK2MSFTNGP12.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
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...
7
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...
1
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...
5
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...
3
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...
7
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...
19
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...
2
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...
11
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...
2
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
0
BarryA
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...
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
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,...
0
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...

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.