Click here to Skip to main content
15,900,816 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am developing a project, where i m giving a Editor to the user.

And as it is a editor, forcefully i need to set VALIDATEREQUEST = FALSE for that particular page, also scripting tags can be easily inserted....

Now how can i avoid Cross Site Scripting here.

Proper responses are appreciated.

Thanks in advance.
Posted

1 solution

The best way to avoid cross site scripting is to use Server.HtmlEncode to all the input strings.
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900