I am trying to handle both double and single quote in my code behind , but none of them are working. Below is my code
private String _systemPath;
public String SystemPath
{
get {
// return _systemPath = _systemPath.Replace("'", "\'").Replace("\"", @"\\\"");
return _systemPath = _systemPath.Replace("'", @"\'").Replace(@"\""", "\"");
}
set { _systemPath = value; }
}
any help will be appreciated.