Allow html in textbox asp.net

{0 Comments}

In most of cases when you use textfield or textbox and some one enter a html code like<> then its through an error. The reason for that Is asp.net by default stop cross-site-scripting method to avoid hacking or high jacking of application. Then you can allow html in textbox in asp.net by setting

 HTML |  copy code |? 
1
<%@ Page ... ValidateRequest="false" %>

 This is by default is true just set it to false. 

Leave a Comment

Your email address will not be published.