Ramco Ramco

Ramco Ramco

  • 442
  • 3.4k
  • 516.7k

Error Message

Aug 28 2024 5:22 AM

Hi

  I am concatenating error message like below. I want when Error message gets displayed .</br> should not get displayed in text.

if (String.IsNullOrWhiteSpace(txtBankName.Text))
{
    errMessage += "Bank Name is required and cannot Be empty.</br>";
}

Boolean IsValidDescription = Common.CommonFunction.IsAlpha(txtBankName.Text);
if (IsValidDescription == false)
{
    errMessage += "Bank Name : Only Alphabets , Space , _ - allowed.</br>";
}

Thanks


Answers (4)