I have a hiddenfield in which i am storing storing the user input and code generated value in string format. Since the string may contain the hyperlink etc i used HTmlEncode before putting it into a hidden field and used to decode the value when i am retrieving from the hiddenfield. If the user input contain French characters then the code will crash. How to encode a string containg- links,french and other culture characters. I am getting the below error
A potentially dangerous Request.Form value was detected from the client (ctl00$ctl00$ContentPlaceHolder1$ContentPlaceHolder1$EmailHiddenField="...434] - [Exécuter la macro...").