all groups > vb.net controls > november 2006 >
You're in the

vb.net controls

group:

Dynamic EventHandler


Dynamic EventHandler David Bell
11/10/2006 12:00:00 AM
vb.net controls:
Hi,

I am adding DropDownLists, textboxes controls dynamically to my page and I
need to and an event handler to a dropDownList which then populates another
DropDownList.
How can I add this Event Handler dynamically and can someone show me some
example code?

Thanks in advance.


Re: Dynamic EventHandler Herfried K. Wagner [MVP]
11/10/2006 1:21:23 PM
"David Bell" <davidbell2@nhs.net> schrieb:
[quoted text, click to view]

Check out the 'AddHandler' statement.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Re: Dynamic EventHandler David Bell
11/10/2006 2:55:05 PM
Thanks for that.

I now have a new problem but still within the context of the first problem.

I have added the AddHandler to my code but i am not sure how to call the
controls to populate my DropDownList

Me.ddlDrugPopulate(ddlClass5.SelectedValue, Me.ddlDrug5)





[quoted text, click to view]

AddThis Social Bookmark Button