C# .NET - modi - Asked By praveen pubby on 23-Nov-10 02:26 AM



   qualification1.SelectedItem.Text   = lblqualification.Text;

qualification1.SelectedItem.Text.......here i ws gttng error ...can any one help me on diz

listbox id= qualification1
div v replied to praveen pubby on 23-Nov-10 02:38 AM
hi,
if want id mean
give qualification1.SelectedItem.Value....

if u have some other error tel me wat type error ur getting
Shailendrasinh Parmar replied to praveen pubby on 23-Nov-10 04:14 AM
Always try to assing values to listbox, combobox, checkbox or radiobutton list by their value.. not by their text displayed.

so your listbox item will have Id as backend. 

so, try like this qualification1.SelectedValue   = lblqualification.Text (Get the Id's value in lblqualification);

Hope this helps.