4
Answers

Error Message

Ramco Ramco

Ramco Ramco

Aug 28
215
1

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)