I want to implement Cross-Site Request Forgery attack prevention in asp.net webform
Presently I am using, AntiForgery.Validate(); in Page_preinit and submit event should I use this in other web forms also or use in only master page so that this functionality applicable throughout the application.
What should I do? give me proper solution in it.
When I validate web form or any specific event at that time what can I do to protect my web
application
Thanks in advance


Rajanikant HawaldarRank #110 · 20.2K reputationPosted Feb 19, 2020, 6:01 PM EST
Aniket RanaRank #1,690 · 902 reputationPosted Feb 19, 2020, 11:47 PM EST