472,146 Members | 1,415 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,146 software developers and data experts.

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 1269

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
reply views Thread by Saiars | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.