Exemple #1
0
        public void MyBind()
        {
            DataTable dt = bcourse.Select_All();

            EGV.DataSource = dt;
            EGV.DataBind();
        }
Exemple #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         DataTable dt = bcourse.Select_All();
         if (dt != null)
         {
             Page_list(dt);
         }
         if (!string.IsNullOrEmpty(Request.QueryString["menu"]) && Request.QueryString["menu"] == "select")
         {
             int    id        = DataConverter.CLng(Request.QueryString["id"]);
             string name      = Request.QueryString["name"];
             string scripttxt = "setvalue('txtCourse','" + name + "');";
             string scriptid  = "setvalue('hfid','" + id + "');";
             function.Script(this, scriptid + scripttxt + ";parent.Dialog.close();");
         }
         Call.SetBreadCrumb(Master, "<li>教育模块</li><li><a href='QuestionManage.aspx'>在线考试系统</a></li><li>选择课程</li>");
     }
 }