// Reset to default options protected void btnReset_Click(object sender, EventArgs e) { BusinessLayer.DataServices m = new BusinessLayer.DataServices(); DataTable dtMath = m.GetMathAcademicInfo(); grdMath.DataSource = dtMath; grdMath.DataBind(); DataTable dtResearch = m.GetResAcademicInfo(); grdResearch.DataSource = dtResearch; grdResearch.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { BusinessLayer.DataServices m = new BusinessLayer.DataServices(); DataTable dtMath = m.GetMathAcademicInfo(); grdMath.DataSource = dtMath; grdMath.DataBind(); DataTable dtResearch = m.GetResAcademicInfo(); grdResearch.DataSource = dtResearch; grdResearch.DataBind(); if (!IsPostBack) { if (Session["Mathmetic"] != null) { LoadMathsSelState(); } if (Session["ResearchExp"] != null) { LoadResSelState(); } } }