I am using a label which shows title of data rows in database, I want
it to be font-resized since it is used in an table and I don't want the
size of table to be extended.
So I do want a good trick to resize
the font by data length , here is what I did:
ID="bipbip" runat ="server" Font-Size ='<%# if (
Eval("title").ToString.Length > 30 ) Then Small : Large %>' Text
20%></asp:Label>It seems that if statement within Eval is different in behaviour because sometimes I get error saying that 'First
operand in a binary 'If' expression must be nullable or a reference
type.'How can I resize the label font size in this way.Also any other solution when I want to have fixed table size and not distorted or out of borders text?
View Complete Post