G
Guest
Hi
I'm developing an ASP.NET app in Visual studio (using C# for code behind). My question is fairly simple (i think). When I go to the code behind page, the controls in the html page are made "protected" so that it can only be accessed from within that page.
I would like to permanently make this "public" for certain controls, so that I can access them from another page (the page that a user control is embedded into for example). If I manually change it, it is fine but when I change something on the HTML page for a control, it reverts back to "protected". It's a real pain continually changing this back to "public", especially since I have quite a few user controls now. I'm assuming that it is Visual Studio that is implementing this annoying quirk. Any help would be appreciated
Regards,
I'm developing an ASP.NET app in Visual studio (using C# for code behind). My question is fairly simple (i think). When I go to the code behind page, the controls in the html page are made "protected" so that it can only be accessed from within that page.
I would like to permanently make this "public" for certain controls, so that I can access them from another page (the page that a user control is embedded into for example). If I manually change it, it is fine but when I change something on the HTML page for a control, it reverts back to "protected". It's a real pain continually changing this back to "public", especially since I have quite a few user controls now. I'm assuming that it is Visual Studio that is implementing this annoying quirk. Any help would be appreciated
Regards,