<asp:Label ID="IDLabel" runat="server" Text='<%# Bind("ID") %>' />
when I call the DataBind() function, ID is displayed as follows:
14
but what if I want to display the ID like this:
ID: 14
this didn’t work.
<asp:Label ID="IDLabel" runat="server" Text='ID: ' + '<%# Bind("ID") %>' />
1 Answer