G
Greg Burns
A usercontrol and your page can both have the same named Viewstate item.
They will not collide, but they also will not be visible to each other.
What you can do is access the Page object's viewstate from the usercontrol.
Create a property (MyProperty) on your Page that returns/sets your
viewstate. Then in the usercontrol
Dim x as string = CType(Page, MyMasterPage).MyProperty
http://tinyurl.com/6vw5z
Greg
They will not collide, but they also will not be visible to each other.
What you can do is access the Page object's viewstate from the usercontrol.
Create a property (MyProperty) on your Page that returns/sets your
viewstate. Then in the usercontrol
Dim x as string = CType(Page, MyMasterPage).MyProperty
http://tinyurl.com/6vw5z
Greg