Change the Access Modifiers of ASP.NET controls
问题 If I put a control in a .aspx file like this; <asp:TextBox ID="protectedTextBox" runat="server">Some info</asp:TextBox> I get a declared control in the page's .aspx.designer.cs file; protected global::System.Web.UI.WebControls.TextBox protectedTextBox; But I'd like to change the access modifier of the control to public . Is there any attribute or similar that I can set to change the access modifier? Here's why I want to do it. I am trying to have cross-page postbacks work nice and neatly. I