I'm working on an ASP.net page in VS.net 2003 and I am stuck on something...
I populate a listbox from data in an access table and I would like to get the text of the selected item in the listbox. Once I get the text, I would then display it on a textbox. Seems simple to me... here is the code:
vb Code:
txtInfo.Text = lstUsers.Items(lstUsers.SelectedItem.Value).Text
I keep getting an object reference not set to instance of an object. I know i'm not instantiating something.. am I missing something? Thanks.





Reply With Quote