void ucWizard_FinishButtonClick(object sender, WizardNavigationEventArgs e) { ListManager.CreateTemplate(tbName.Text, ListManager.GetListInfoByMetaClassName(Request["class"]), cbWithData.Checked); this.Page.ClientScript.RegisterStartupScript(this.Page.GetType(), Guid.NewGuid().ToString("N"), String.Format("window.opener.location.href='{0}';window.close();", ResolveClientUrl("~/Apps/ListApp/Pages/ListTemplates.aspx")), true); }