PostData = TextBox2.Text.Substring(0, 5000)
"Index and length must refer to a location within the string. Parameter name: length "
String PostData = TextBox2.Text; if (PostData.Length > 5000){ PostData = PostData.Substring(0,5000); }
string PostData = (TextBox2.Text.Length > 5000 ? TextBox2.Text.Substring(0, 5000) : TextBox2.Text);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)