开发者

what header file should add for Microsoft.Security [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhet开发者_JS百科orical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜