Feb 16, 2011, 9:07 PM
[CLOSED] Best solution for show window
Hello,
I have some pages with 4 to 5 window controls.
I use your scenario:
1) Usercontrol (for example Test.ascx) in which I make window with other Ext controls
usercontrols as above) and this slows page load.
My questions are:
1) Does a better way for this problem exist? I know for one solution of one Ext window control in page and using Mode="IFrame" and
AutoLoad option, but in this scenario I must dynamicaly resize window and after closing window it must still exist.
2) I want that my .apsx page are lightweight as possible, that I can call and show window on demand (declared in usercontrol), and
that after closing this window is destroyed. Is this possible?
Can you suggest or provide some examples for this problem?
Best regards,
Sasa
I have some pages with 4 to 5 window controls.
I use your scenario:
1) Usercontrol (for example Test.ascx) in which I make window with other Ext controls
<ext:WindowID="frmWindow"runat="server">
...
</ext:Window>
2) I .aspx page I register control
<%@RegisterSrc="Test.ascx"TagName="TestCtl"TagPrefix="uc1" %>
and
<uc1:TestCtlID="TestCtl1"runat="server"/>
3) In codebegin .aspx page I call method for showing window
this.TestCtl1.Show();
This works OK if I have one simple window, but I have few .apsx pages with more heavy Ext window controls (declared in similarusercontrols as above) and this slows page load.
My questions are:
1) Does a better way for this problem exist? I know for one solution of one Ext window control in page and using Mode="IFrame" and
AutoLoad option, but in this scenario I must dynamicaly resize window and after closing window it must still exist.
2) I want that my .apsx page are lightweight as possible, that I can call and show window on demand (declared in usercontrol), and
that after closing this window is destroyed. Is this possible?
Can you suggest or provide some examples for this problem?
Best regards,
Sasa
Last edited by geoffrey.mcgill; Feb 18, 2011 at 10:01 PM.
Reason: [CLOSED]