Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Assigning a listbox's selected item's text to a string.


Message #1 by "Oliver, Wells" <WOliver@l...> on Tue, 27 Aug 2002 11:49:16 -0700
Code:

	dim resultsStr as String

	resultsString = CType (E.Item.FindControl ("results"),
Listbox).SelectedItem.Text

Results in an invalid cast error. E in this case being
DataListCommandEventArgs.

Any ideas here?

Wells Oliver
Web Application Programmer
Leviton Voice & Data
xxx-xxx-xxxx
http://www.levitonvoicedata.com


  Return to Index