I am looking at dealing with cross-site scripting, one solution that I came across, involves setting the validateRequest = false in either the web.config (covers the entire project) or in the @Page tag in the source of individual pages. Once this change has been made it is necessary to use the cmds:
to convert the data as you are collecting/ distributing to the page front and database.
Another solution suggested involves employing required field validators on all text fields.
Has anyone used any of these methods, and what are their impressions of them.
Mike55.
Code:
HttpUtility.HtmlEncode
and
HttpUtility.HtmlDecode
to convert the data as you are collecting/ distributing to the page front and database.
Another solution suggested involves employing required field validators on all text fields.
Has anyone used any of these methods, and what are their impressions of them.
Mike55.