Hi,
I hope this is a little thing but I can't find the solution. I want to change the text font size into my label dynamically, can anyone help me to resolve this, I am doing following code but Receiving Error .
Error is: CS1729: 'System.Web.UI.WebControls.FontSize' does not contain a constructor that takes '1' arguments
if (bl.Save(a))
{
lblName.ForeColor=System.Drawing.Color.Red;
lblName.Font = new FontSize(FontUnit.XXLarge);
lblName.Text = "Insert Successful";
}
else
{
lblName.ForeColor = System.Drawing.Color.Red;
lblName.Font = new FontSize(FontUnit.Small);
lblName.Text = "There is some Problem, Try again or Inform Developer.";
}
Thanks for your help.
...
Go to the complete details ...