Hi, I have 1 web application in c#.Simple problem is to insert the HTML tags like "<" and ">" in database from front end.
When i write this in text box & then press button to save, it is not getting called but if I remove it then it works fine.
Also note that I tried this using HTMLEncode method as well...
Kindly give suggestion for the same
I want to insert HTML tags in database from c#.I tried using Server.HTMLEncode but when I click on save button then it is not getting called.
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Alok UniyalRank #8,369 · 223 reputationPosted Sep 17, 2012, 2:54 AM EDT
I think you are using asp:TextBox for take input in front end. You can use Editor control of Ajax Toolkit.
http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/HTMLEditor/HTMLEditor.aspx
hj jh81 reputationPosted Sep 17, 2012, 4:31 AM EDT
Alok UniyalRank #8,369 · 223 reputationPosted Sep 17, 2012, 9:07 PM EDT
http://stackoverflow.com/questions/4146309/in-a-text-box-in-asp-net-how-to-allow-it