protected void btnDisplayFromNDAR_OnClick(object sender, EventArgs e) { string shortname = txtNDAR_ShortName.Value.ToString(); DataTable dt = NDAR.LoadDataStructure(shortname); int n = dt.Rows.Count; Session["shortname"] = shortname; Session["StructureFromNDAR"] = dt; gridDS.DataBind(); btnImportFromNDAR.Visible = true; btnImportFromNDAR.ClientVisible = true; }
protected DataTable LoadStructureFromNDAR(string shortname) { DataTable dt_ds; object o = Session["StructureFromNDAR"]; if (o != null) { dt_ds = (DataTable)o; } else { dt_ds = NDAR.LoadDataStructure(shortname); } return(dt_ds); }