Label Control Question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am developing a web form that has several labels on it. I want to show information from a database in the labels. I have built the select string programatically. Since the label control has no data source property, how can I bind the label control to the data source?

Thanks,

Dave
 
Just set the Text property to the result of ToString() for a cell in the
DataTable.

-Pete


Dave Bailey said:
I am developing a web form that has several labels on it. I want to show
information from a database in the labels. I have built the select string
programatically. Since the label control has no data source property, how
can I bind the label control to the data source?
 
Can you give an example of how we can do this

----- AirPete wrote: ----

Just set the Text property to the result of ToString() for a cell in th
DataTable

-Pet


Dave Bailey said:
I am developing a web form that has several labels on it. I want to sho
information from a database in the labels. I have built the select strin
programatically. Since the label control has no data source property, ho
can I bind the label control to the data source
 
Back
Top