firing an dropdownlist event
-
this.outlet.SelectedIndexChanged += new System.EventHandler(this.outlet_SelectedIndexChanged); this way we can fire an event is this correct or not in asp.net this is not firing the event do i need to add anything after this
-
this.outlet.SelectedIndexChanged += new System.EventHandler(this.outlet_SelectedIndexChanged); this way we can fire an event is this correct or not in asp.net this is not firing the event do i need to add anything after this
kalyan_2416 wrote:
is this correct or not in asp.net
Yes It is correct
kalyan_2416 wrote:
this is not firing the event
It depends on where you wrote the above line. Have you wrote
outlet_SelectedIndexChanged
method ? How you understood that it is not firing event ? Make sure that controlsautopostback
is set to true.
-
this.outlet.SelectedIndexChanged += new System.EventHandler(this.outlet_SelectedIndexChanged); this way we can fire an event is this correct or not in asp.net this is not firing the event do i need to add anything after this
Try this: Add AutoPostBack="true"
ravi chandra