protected void Page_Load(object sender, EventArgs e) { UiApplication.Me = CreateUiPlugin(APPLICATION_PUX_FILE) as UiApplication; CiApplication ciApplication = UiApplication.Me.CiApplication; if (!MyWebUtils.IsTimeOutReached(this) && ciApplication != null) { ASPxWebControl.GlobalTheme = ciApplication.Theme; ASPxWebControl.GlobalThemeBaseColor = ciApplication.ThemeColor; MyWebUtils.RegisterPluginScripts(this); myOuterPanel.Controls.AddAt(0, UiApplication.Me); object justLoggedIn = Session["JustLoggedIn"]; if (justLoggedIn != null && Convert.ToBoolean(justLoggedIn)) { Session["JustLoggedIn"] = null; UiApplication.Me.RunLoginMacro(); } string puxFile = MyWebUtils.QueryString[PLUGIN_SRC_KEY]; if (MyUtils.IsEmpty(puxFile)) { puxFile = ciApplication.HomePluginSrc; } if (puxFile != APPLICATION_PUX_FILE) { LoadUiPlugin(puxFile); } } }
protected void myCallbackPanel_Callback(object sender, CallbackEventArgsBase e) { if (!MyWebUtils.IsTimeOutReached(this)) { foreach (Control control in myInnerPanel.Controls) { control.Dispose(); } myInnerPanel.Controls.Clear(); string puxFile = e.Parameter; if (!MyUtils.IsEmpty(puxFile)) { LoadUiPlugin(puxFile); } } }