I am using DNN 7 text editor control to pass text to my Stored Procedure:
Cmd.Parameters.Add(new SqlParameter("@Title", SqlDbType.NText)).Value = txtMsgTitle.Text; Cmd.Parameters.Add(new SqlParameter("@Body", SqlDbType.NText)).Value = teMsgBody.Text;
Before insert/update I have to replace all the html codes like 'á ;', 'à ;' (please remove spaces) with the equivalent Unicode characters 'á','à' so that when I enter some text to search, it can return correct result for me.
Has anyone got a better solution for this? I have to do the replace many times (say 20 characters) something similar to this link but not that complicated: http://www.stormrage.com/SQLStuff/XML_To_ASCII.txt