Prevent User from Entering HTML tags in Textbox/TextArea
In ASP.net this is integrated by default in the page directives:
If ValidateRequest is true, the code will trow exeption like:
potentially dangerous Request.Form value was detected from the client (TextBox1="<div>").
Refer This link for more Details: