protected void BtnSearch_Click(object sender, EventArgs e) { Page.ClientScript.RegisterStartupScript(this.GetType(), "JsFunc", "Setsize()", true); int fellowshipID = Convert.ToInt32(dpFellowship.SelectedValue); DataTable dt = CobcYouthDAL.GetSpiritGrowPlan(fellowshipID); GridViewPlan.DataSource = dt; GridViewPlan.DataBind(); }
protected void BtnSearch_Click(object sender, EventArgs e) { if (!ClientScript.IsStartupScriptRegistered("JsFunc_Setsize")) { Page.ClientScript.RegisterStartupScript(this.GetType(), "JsFunc_Setsize", "Setsize();", true); } int fellowshipID = Convert.ToInt32(dpFellowship.SelectedValue); DataTable dt = CobcYouthDAL.GetSpiritGrowPlan(fellowshipID); GridViewPlan.DataSource = dt; GridViewPlan.DataBind(); Session["Test_dtmember"] = dt; }