473,322 Members | 1,403 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,322 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 1309
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.