Vikas Panwar
How can you detect if a viewstate has been tampered?

How can you detect if a viewstate has been tampered?

By Vikas Panwar in .NET on Nov 27 2021
  • Jay Pankhaniya
    Apr, 2023 14

    1. protected void Page_Load(object sender, EventArgs e)
    2. {
    3. if (ViewStateUserKey != Session.SessionID)
    4. {
    5. // The viewstate has been tampered with
    6. }
    7. }

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS