May 17, 2012, 6:41 PM
[CLOSED] Design Question
OK the application is growing and I am looking to do a little refactoring of the code because some of the aspx files are getting very large and hurting by head when I scan through the code. What suggestions does anyone have to break up the following:
UsersRoles.aspx
UsersRoles.aspx
<ext:TabPanel ...>
<Items>
<ext:Panel runAt="server" Title="Active" Icon="UserGreen" Layout="FitLayout">
<Items>
<ext:GridPanel ...>
...
</ext:GridPanel>
</Items>
</ext:Panel>
</Items>
<ext:Panel runAt="server" Title="Inactive" Icon="UserRed" Layout="FitLayout">
<Items>
<ext:GridPanel ...>
...
</ext:GridPanel>
</Items>
</ext:Panel>
</Items>
<ext:Panel runAt="server" Title="Roles" Icon="Group" Layout="FitLayout">
<Items>
<ext:GridPanel ...>
...
</ext:GridPanel>
</Items>
</ext:Panel>
</Items>
</ext:TabPanel>
For some unknown reason I pulled out the <ext:GridPanel ...> to </ext:GridPanel> and put it in a user control and called it via: <ext:Panel runAt="server" Title="Roles" Icon="Group" Layout="FitLayout">
<Items>
<ext:UserControlLoader runat="server" Path="./TabRoles.ascx />
</Items>
</ext:Panel>
Is the the best way or could I have put it in a aspx and called it? and if so how?
Last edited by Daniil; May 18, 2012 at 4:15 PM.
Reason: [CLOSED]