protected void Page_Load(object sender, System.EventArgs e) { if (string.IsNullOrEmpty(Request.QueryString["key"])) { try { cSchema.Text = Session["ImportSchema"].ToString(); } catch {} } else if (string.IsNullOrEmpty(Request.QueryString["csy"])) { PreMsgPopup("Please make sure QueryString has 'csy=' followed by the SystemId and try again."); } else { cSchema.Text = Request.QueryString["scm"].ToUpper() == "W" ? ImportSchemaModule.GetWizardSchema() : ImportSchemaModule.GetScrSchema(); } }
protected void cTmplDownload_Clicked(object sender, EventArgs e) { string tmpl = Request.QueryString["scm"].ToUpper() == "W" ? ImportSchemaModule.GetWizardTmpl() : ImportSchemaModule.GetScrGridTmpl(); ExportToStream("ImportTemplate.xls", tmpl); }