User753101303 posted
Hi,
String methods are returning a new string so at best it would be :
Message=Message.Replace("'","''")
If it doesn't help, you could check the value found in Message using the debugger :
- if you see already ' then it seems the string was encoded at some point but stayed encoded (maybe it was encoded twice so when posted back and decoded you still have this HTML entity in your string)
- if not it happens later and could depend on your database. ? (so having this kind of encoding option looks weird. Maybe an Oracle option we don't have with SQL Server ?)