protected void BindGridData() { FreightEasy.PNL.OceanExportPNL myDs = new FreightEasy.PNL.OceanExportPNL(); myDs.GetAllRecords(elt_account_number, Session["MAWB"].ToString(), "", ""); DataSet ds = myDs; UltraWebGrid1.DataSource = ds; UltraWebGrid1.DataBind(); UltraWebGrid1.ExpandAll(); }
protected void Button1_Click(object sender, EventArgs e) { FreightEasy.PNL.OceanExportPNL myDs = new FreightEasy.PNL.OceanExportPNL(); myDs.GetAllRecords(elt_account_number, lstSearchNum.Text, "", ""); DataSet ds = new DataSet(); foreach (DataTable dt in myDs.Tables) { ds.Tables.Add(dt.Copy()); } Session["Accounting_sSelectionParam"] = "OEPNL"; Session["OEPNLDS"] = ds; ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "RediretThis", "window.top.location.href='/AirExport/OEPNL/dataready'", true); //Response.Redirect("PNLResultOE.aspx?MAWB=" + lstSearchNum.Text); }