<ItemTemplate> <asp:Label ID="Label1" runat="server" Text='<%# CheckNull(Eval("Location")) %>'> </asp:Label> </ItemTemplate>
protected string CheckNull(object objGrid)
{ if (object.ReferenceEquals(objGrid, DBNull.Value))
{ return "No Record Found"; }
else { return objGrid.ToString(); }
}
No comments:
Post a Comment