Eval Check String Null or Empty
<asp:TemplateField HeaderText="Customer Account Name"> <ItemTemplate> <asp:Label ID="lblRecieverClientAccountName" runat="server" Text='<%#Eval("RecieverClientAccountName").ToString()) ? String.Empty : 'Invalid Account number' ,"RecieverClientAccountName" %>'></asp:Label> </ItemTemplate> </asp:TemplateField> I need to check string is empty and show a custom message .It gives me an error "The server tag is not well formed."
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.