on-internet
← Community

Eval Check String Null or Empty

Stack Overflow ·

<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."

Comments

Sign in or sign up to comment and upvote.

No comments yet.