469,640 Members | 1,579 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,640 developers. It's quick & easy.

Variable Scope for Custom Server Controls

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
0 1185

Post your reply

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

Similar topics

5 posts views Thread by Dag | last post: by
3 posts views Thread by Chris Newby | last post: by
7 posts views Thread by Girish | last post: by
11 posts views Thread by Nick Gilbert | last post: by
4 posts views Thread by =?Utf-8?B?UmljaEI=?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.