Thread: Bind a Label
View Single Post
 
Old January 3rd, 2007, 08:37 AM
cp75 cp75 is offline
Authorized User
 
Join Date: Aug 2006
Location: , , USA.
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default Bind a Label

I'm new in ASP. Can I bind a Label without be inside datalist, datagrid?. I wrote a function that retrieves "salesman name" from an access database but somehow retrieves "System.Data.OleDb.OleDbDataReader" and not the data.

<asp:Label id="lbl2" runat="server" text=<%# GetSalesman()%>/>

Can I do this without the use of datalist, repeater or datagrid.????

Thanksss.
C