Posted on 2011-09-08
Hey guys, i am populating my grideview from my database and i need help how to bind my data.
i have this coloums in my table: id, available, price (some of my varables)
in my grideview i have a lable for price
<asp:Label ID="lblPrice" runat="server" Font-Bold="True" Font-Names="Arial" Font-Size="14px" ForeColor="#C31D1D" Text='<%# Bind("price") %>'></asp:Label>
now in my table i have a coloum called available,
if it is empty ("") than a want the price to show
and if it not empty("No Stock" ) that label must show No Stock