need to handle double and single quote in C# code behind

dirty_king

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