Adding events to dynamically created controls
-
Hi, I am dynamically creating asp.net controls at runtime. I have 2 dropdown lists. When I change the item selected in the first drop down list I want to load the second drop-down list. How shall I add the SelectedIndexChanged event handler for the first dropdown list? Please let me know at the earliest since this is really urgent. Thanks in advance. Sid :)
-
Hi, I am dynamically creating asp.net controls at runtime. I have 2 dropdown lists. When I change the item selected in the first drop down list I want to load the second drop-down list. How shall I add the SelectedIndexChanged event handler for the first dropdown list? Please let me know at the earliest since this is really urgent. Thanks in advance. Sid :)
C# [Control Name].[Event Name]+= new EventHandler(function name); VB AddHandler [Control Name].[Event Name], AddressOf function name Thomas
-
C# [Control Name].[Event Name]+= new EventHandler(function name); VB AddHandler [Control Name].[Event Name], AddressOf function name Thomas
-
Did you create a variable of dropdownlist? If yes use that variable to select the event. Thomas
-
Did you create a variable of dropdownlist? If yes use that variable to select the event. Thomas