J
Jason Shohet
A label on an ascx control has a corresponding declaration in the c#
code-behind page.
I was curious what would happen if I made that declaration 'PRIVATE' instead
of 'PROTECTED'.
The only things that touch that label are functions in that code-behind page
itself -- nothing on the outside.
Basically, it doesn't work. Only when I changed it back to 'protected' in
the ascx's cs page, could I modify the text in the label, from within
functions in that cs page. I was curious why this is.
I always thought 'Private' means that "anything on that class can access the
private / protected object".
TY for the explanation
code-behind page.
I was curious what would happen if I made that declaration 'PRIVATE' instead
of 'PROTECTED'.
The only things that touch that label are functions in that code-behind page
itself -- nothing on the outside.
Basically, it doesn't work. Only when I changed it back to 'protected' in
the ascx's cs page, could I modify the text in the label, from within
functions in that cs page. I was curious why this is.
I always thought 'Private' means that "anything on that class can access the
private / protected object".
TY for the explanation