I have a TextBox
where the user will type.
I can not leave any blank lines (return "\ r") before sending them to the database. In my code, it works fine when it finds \r\r
, but not when \r\r\r
How can I resolve this?
The text should look like this:
exemplo
exemplo
exemplo
Not like this:
exemplo
exemplo
exemplo
exemplo
Code:
while (insObs.Text != "")
{
if (insObs.Text.Contains("\r\r"))
{
vaiObs = insObs.Text.Replace("\r\r", "\r");
break;
}
}