Re: adding event handler in user Control

Tech-Archive recommends: Fix windows errors by optimizing your registry



VMI,

In order to do this, the control has to either expose the combo box
publically as a property (at which point, you can wire up an event), or it
would have to expose an event from the combobox, and aggregate the event
itself so that the page can connect to it.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx

"VMI" <VMI@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:5BD08C1A-2076-4388-B861-2390A183613D@xxxxxxxxxxxxxxxx
My aspx has a user Control (a .ascx) that includes all the fields of an
address (add1, city, st, etc...). How can I add an event handler to a
comboBox inside the .ascx from within my aspx page? I just want to add
this
event handler to that instance of the comboBox.

Thanks.


.



Relevant Pages

  • Re: Canceling the OnKeyDown event
    ... I have written an event handler to control the ... This same ComboBox ... disallow the update in the NotInList event, the AfterUpdate event won't ...
    (microsoft.public.access.formscoding)
  • Re: Canceling the OnKeyDown event
    ... I have written an event handler to control the ... This same ComboBox ... disallow the update in the NotInList event, the AfterUpdate event won't ...
    (microsoft.public.access.forms)
  • Re: asking about event
    ... Kenichi wrote: ... expose ways of subscribing and unsubscribing. ... what is the event handler before ... i think it would be not effecient writing one by one line removing the event ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Combo Boxes
    ... box based upon the selection made in the first combo box. ... The combobox property that determines what is shown in the ... populated with an SQL statement telling Access what to show ... put in the GotFocus event handler of the second combo box. ...
    (microsoft.public.access.forms)
  • Re: Problem with forms not properly disposed
    ... The IsDisposed property is True for both the combobox and the form. ... > has been disposed (in your event handler). ... >>> If you dispose something you should make sure you remove ...
    (microsoft.public.dotnet.framework.windowsforms)