Using a Page variable in User Control

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bergkamp
    New Member
    • Apr 2014
    • 1

    Using a Page variable in User Control

    Hi,
    I have a page with a private variable: AccountData.
    This handles all of the account data and i save it in the viewstate between postbacks.
    I have a User Control named - AccountFavorite s that renders all of the account Favorite topics.
    When a user decides he wants to cancel one favorite topic he clicks on an asp:LinkButton and it postback to the server to change the value in the Database.

    however, the Control doesn't know what "AccountDat a" is, only the page does. how can i use the "AccountDat a" in a postback of the Control? or can I make the postback go to the page instead?

    Thanks a lot!
Working...