Home All Groups Group Topic Archive Search About
Author
11 May 2005 11:06 PM
abcd
On Server side code I am programatically selecting something usinng
"lstBox.SelectedValue =
some value". Now I want to fire  selection change event when I set/select
some value

How can I fire the selection change event from the server side code

thanks

Author
12 May 2005 12:34 AM
EJD
Forgive me if I'm completely missing the point.  I'm not sure if your
intent is to manually hook events to the listbox, but if it isn't, can
you use the "SelectedIndexChanged" event that comes with the control?
As in you can set the control to AutoPostBack=true, and then deal with
the SelectedIndexChanged event...?

But that being said, this link may be helpful...
http://www.ondotnet.com/pub/a/dotnet/excerpt/progaspdotnet_14/index1.html?page=3

Hope this helps.

Eric