By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 1,616 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

Using a Page variable in User Control

P: 1
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 - AccountFavorites 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 "AccountData" is, only the page does. how can i use the "AccountData" in a postback of the Control? or can I make the postback go to the page instead?

Thanks a lot!
Apr 17 '14 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.