E
Eric
Hi,
i was wondering whether it's possible to get some data from a table and to
put it directly in a label without using gridview, reapeater, detailsview
etc ...
Here what i tried (doen't work): (this query returns only one record)
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:myconn %>"
SelectCommand="SELECT [n1] FROM [mytable]"></asp:SqlDataSource>
<asp:Label ID="Label1" runat="server" Text='<%# Eval("n1")
%>'></asp:Label>
....
Thanks
Eric
i was wondering whether it's possible to get some data from a table and to
put it directly in a label without using gridview, reapeater, detailsview
etc ...
Here what i tried (doen't work): (this query returns only one record)
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:myconn %>"
SelectCommand="SELECT [n1] FROM [mytable]"></asp:SqlDataSource>
<asp:Label ID="Label1" runat="server" Text='<%# Eval("n1")
%>'></asp:Label>
....
Thanks
Eric