TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ravi
NA
54
510
Anti-Forgery for security audit.
Apr 22 2020 9:49 AM
Hi Sir,
Can you please share code for anti-forgery for security audit purpose. I did it but they are asking to change the token every time the page loads or postback. Please share the code to
[email protected]
. Or explain here with the complete code asap.
This is the code i used:
DivCSRF.InnerHtml = AntiForgery.GetHtml().ToString()
If
IsPostBack
Then
Try
AntiForgery.Validate()
Catch
ex
As
Exception
Response.Redirect(
"~/Unauthorize.aspx"
,
False
)
Exit
Sub
End
Try
End
If
Thanks & Regards
Ravi Mishra
Reply
Answers (
1
)
.NET MVC with JQUERY TABLE
Add button is not clicking/adding when adding a product