/ Published in: C#

To display "&" character within the string used as error descriptor in ErrorProvidor component in .NET use "&&&" so that it displays as a single "&".
More detail at:
http://www.codeproject.com/Messages/3225091/ErrorProvider-SetError-string-constraint.aspx
More detail at:
http://www.codeproject.com/Messages/3225091/ErrorProvider-SetError-string-constraint.aspx
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// "&&&" are displayed as "&" in error provider tool-tip string tempStr = "Some Name can not contain the characters: &&&,á,é,Ã,ó"; this.mainErrorProvider.SetError(this.someNameTxtBox, tempStr);
Comments
