Why can't i access page viewstate in usercontrol?

Posted by Rohit on Stack Overflow See other posts from Stack Overflow or by Rohit
Published on 2010-06-11T06:39:28Z Indexed on 2010/06/11 6:42 UTC
Read the original article Hit count: 201

Filed under:

I stored a object in viewstate on Page. Now when i access the same viewsate object on usercontrol,it shows as null. I even tried creating the same viewstate with same name in usercontrol and page.Both holds different value.

I understand that viewstate is a protected property. How does this thing implement in above scenerio or is there any other reason for this behaviour.

© Stack Overflow or respective owner

Related posts about ASP.NET