what header file should add for Microsoft.Security [closed]
Hi i am adding this code. throws error in security . how to fix that.
int intID = int.Parse(Microsoft.Security.Application.Encoder.HtmlEncode(Request.QueryString["KeyID"]));
You're trying to use AntiXSS (which I "own").
However what youy're doing with it doesn't make a great deal of sense, you don't need to HtmlEncode before trying to parse, and, in fact, HtmlEncode would touch integers in query strings, and the encoding method for query strings is (admittedly confusingly) UrlEncde.
Are you looking for the Microsoft Web Protection Library?
The Anti-Cross Site Scripting library, instructions in the link.
精彩评论