I am developing an httphandler to process some requests in Web Forms (NOT in MVC).
How could I implement Anti Cross Site Scripting (like antiforgery in MVC)?
I want to know mre about the antiforgery mechanism in MVC.
I am developing an httphandler to process some requests in Web Forms (NOT in
Share
If you can access the Page, you can use the ViewStateUserKey property of the Page. Here is an example of how to do this from within the page, but you will get the idea:
While the ViewStateUserKey is pretty safe, there are some short comes with this. You can read more about that here.