View Single Post
  #1 (permalink)  
Old October 19th, 2009, 02:43 PM
arnabghosh arnabghosh is offline
Friend of Wrox
Points: 686, Level: 9
Points: 686, Level: 9 Points: 686, Level: 9 Points: 686, Level: 9
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2005
Location: Kolkata, West Bengal, India.
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
Default Getting Listbox selected value into a string

Hi All ,

I am trying to store a single selected value of a Listbox into a string but it's giving me exceptions.

I am doing the following:

[code]

string xx=string.Empty;

xx= lstbox1.SelectedValue.ToString();

This is not working. What is the alternate way to do this. ??

Urgent !!! Please help