access modifier for webcontrols

From: ajit (ajit_at_discussions.microsoft.com)
Date: 11/17/04


Date: Wed, 17 Nov 2004 13:19:02 -0800

I am modifing the web app creted by someone else , I see that in code behind
file all the web controls declared as public to access then in different
class. Now I know its bad pactice but I have noticed something wierd when
ever I try to add new webcontrol to that page all the web controls which are
declared as public change back to protected I cant understand this behaviour
can someone expalin this.

Thanks and regards.



Relevant Pages