Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: Listbox + DataBinder + DataSet


Message #1 by philip.hatt@a... on Wed, 15 Jan 2003 09:43:21
Hello!

I have a Listbox on my webform called "lstBox". The datasource for the 
object is a dataset called "ds" and I bind it to lstBox using the 
datasource property. Finally I call the DataBind() method to display the 
data. 

My question is: how can I display more than one value in lstBox 
DataTextField property. At the moment I can only display one value 
ex. "name" that comes from the dataset. How do I do if I would like to 
display both "name" and "date" in the DataTextField property?

Is it possible to "check" the data before it is inserted in listbox during 
the databind() method. Ex. 
if name="test" then
 name="not test"
end if

Best regards,

Philip

  Return to Index