Results 1 to 3 of 3

Thread: What is the use of Viewstatemac?

  1. #1
    Junior Member
    Join Date
    Jun 2008
    Answers
    2

    What is the use of Viewstatemac?

    What is the use of Viewstatemac.. What will happen if I set the value to True


  2. #2
    Contributing Member
    Join Date
    Jun 2007
    Answers
    65

    Re: What is the use of Viewstatemac?

    Quote Originally Posted by subbu_msis View Post
    What is the use of Viewstatemac.. What will happen if I set the value to True
    ViewStateMAC property is used for security purpose. It is used to maintain data integrity of viewstate across postbacks.

    Basically it is used to check if user has changed (tempered) the viewState and making request.

    If we will set EnableViewStateMac to True then, the encoded and encrypted view state is checked to verify that it has not been tampered with on the client.

    You can find more information at MSDN
    ViewStateMac Property


    ---V V---
    Vikas Vaidya

    Please mark this post with Thanks if u found the answer useful


  3. #3
    Junior Member
    Join Date
    Feb 2008
    Answers
    3

    Re: What is the use of Viewstatemac?

    Hello,
    A view state MAC is an encoded version of the hidden variable that a page's view state is persisted to when sent to the browser.
    When you set the EnableViewStateMac attribute to true, the encoded and encrypted view state is checked to verify that it has not been tampered with on the client.
    It is recommended to set the EnableViewStateMac attribute to true using the @ Page directive in the .aspx file.
    I hope this information is enough for you.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact