I am currently trying to create a statement where if it returns false then a label will display on the page with an error message. I have tried using Response.Write with no results.
if (bannedDomainText.Text.Contains("."))
File.AppendAllText(MapPath(FILE_PATH), "\r\n" + bannedDomainText.Text);
else
Response.Write("<label>This isn't working!</label>");
Html
Code