Adding Events to controls
-
Hello, I have a global question. Is there a way to add event to existing control. For example, the panel control do not have Click Event. Is it poosible to inherits the control and to add Click Event? Thank you
Shay Noy
-
Hello, I have a global question. Is there a way to add event to existing control. For example, the panel control do not have Click Event. Is it poosible to inherits the control and to add Click Event? Thank you
Shay Noy
I expect so, but I'd expect it to be a lot of work. You'd need javascript to post the form back, make sure that it posts back with the data you need, you'd need to check the values when then viewstate tree is recreated, etc.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
I expect so, but I'd expect it to be a lot of work. You'd need javascript to post the form back, make sure that it posts back with the data you need, you'd need to check the values when then viewstate tree is recreated, etc.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
shaynoy wrote:
but what I mean is not only for ASP.net.
Well, if you think the answer is going to be the same for both ASP.NET and winforms, then apart from being in the wrong forum, it's clear you don't really understand what ASP.NET is and does.
shaynoy wrote:
Take any control existing in vb.net, I would like to add to it an event that it doesn't have using EventHandler, delegate, Event, raisevent...
Well, I think the fact that you didn't understand me means you won't do this any time soon for ASP.NET, but for winforms, it's not too hard, I would think.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.