if i click the detials in the listbox1.then the corresponding details of the listbox2 should be displayed in the listbox.
on which event i should try.
Printable View
if i click the detials in the listbox1.then the corresponding details of the listbox2 should be displayed in the listbox.
on which event i should try.
you should write inside "SelectedIndexChanged"....the current selected value can be fetched using "lst1.SelectedValue"
remember to set AutoPostBack to true for lst1...only then this code will work.