コード例 #1
0
        private void BindGridStd()
        {
            DataTable StdDT = ExamMst.GetAllActiveData();

            GvStd.DataSource = StdDT;
            GvStd.DataBind();
        }
コード例 #2
0
        private void BindExam()
        {
            DataTable Mstdt = ExamMst.GetAllActiveData();

            drpExam.DataSource = Mstdt;
            drpExam.DataTextField = "Name";
            drpExam.DataValueField = "ExamId";
            drpExam.DataBind();
            drpExam.Items.Insert(0, "SELECT");
        }