I have a property on a page called
public string productName { get; set; }
I want to access this in my usercontrol code behind. What's the right way to do it?
Currently I am doing
((MyPage)Page).productName
But the user control is not compiling. My pagename is MyPage and I have also added a Reference
<%@ Reference VirtualPath="~/MyPage.aspx" %>