示例#1
0
        // 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();
        }
示例#2
0
        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();
                }
            }
        }