0
I have a TextBox
where the user will type.
I cannot leave any blank line (Return " r") before sending to the database. In my code, it works well when you find \r\r
, but not when they have \r\r\r
How can I fix 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;
}
}