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

Variable Scope for Custom Server Controls

P: 1
Quick ASP.Net architectural question....

We're creating a set of standard web controls for use in our app, and those custom controls need access to a set of variables that we are initializing at the PAGE level (in the Master page, actually). What's the syntax to access those variables from inside the custom control's render sub? Will we be able to just reference Master.varnm like we can in the page, or is there a different syntax when we're inside the server control?

FYI - There are a number of threads in this forum on variable scope, but I didn't want to attach to them due to age (mostly 2004/5).

Thanks in advance.
Jun 17 '06 #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.