コード例 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         db.fillddl("select * from department", DropDownList_dep, "dname", "did");
     }
 }
コード例 #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         db.fillddl("select * from semester", DropDownList5, "sem", "semid");
     }
 }
コード例 #3
0
ファイル: Sent_Message.aspx.cs プロジェクト: alwin-97/CSRMS
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         db.fillddl("select distinct(teacher.name)  as teachername,teacher.lid as teacherlid  from teacher inner join student on teacher.did=student.did", DropDownList1, "teachername", "teacherlid");
         db.filldlist("SELECT * FROM CHAT where fromid=" + Session["login_id"] + " or toid=" + Session["Login_id"], DataList1);
     }
 }
コード例 #4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         db.fillddl("select * from subject", DropDownList_subject, "subjectname", "sid");
     }
 }
コード例 #5
0
ファイル: View_Report.aspx.cs プロジェクト: alwin-97/CSRMS
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         string slid = Session["login_id"].ToString();
         db.fillddl("select * from student inner join teacher on student.did=teacher.did and teacher.lid=" + slid, DropDownList1, "name", "lid");
     }
 }
コード例 #6
0
ファイル: Send_Message.aspx.cs プロジェクト: alwin-97/CSRMS
    protected void RadioButtonList1_SelectedIndexChanged(object sender, EventArgs e)
    {
        string choice = RadioButtonList1.SelectedItem.Value;

        if (RadioButtonList1.Items[0].Selected == true)
        {
            db.fillddl("select distinct(teacher.name)  as teachername,teacher.lid as teacherlid  from teacher where role='hod'", DropDownList1, "teachername", "teacherlid");
        }
        else if (RadioButtonList1.Items[1].Selected == true)
        {
            db.fillddl("select distinct(teacher.name)  as teachername,teacher.lid as teacherlid  from teacher inner join student on teacher.did=student.did and teacher.role='teacher'", DropDownList1, "teachername", "teacherlid");
        }
        else if (RadioButtonList1.Items[2].Selected == true)
        {
            db.fillddl("select distinct(student.name)  as studentname,student.lid as studentlid  from student", DropDownList1, "studentname", "studentlid");
        }
    }
コード例 #7
0
ファイル: Report.aspx.cs プロジェクト: alwin-97/CSRMS
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         string slid = Session["login_id"].ToString();
         db.fillddl("select * from student", DropDownList1, "name", "lid");
     }
     //string slid = Session["login_id"].ToString();
 }
コード例 #8
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         db.fillddl("select * from subject", DropDownList_subject, "subjectname", "sid");
     }
     if (FileUpload_assignment.PostedFile != null && FileUpload_assignment.PostedFile.ContentLength > 0)
     {
         string Name = FileUpload_assignment.FileName;
         string path = "~/UplodedContents/Assignments/" + FileUpload_assignment.FileName;
         int    size = FileUpload_assignment.PostedFile.ContentLength;
         if (FileUpload_assignment.PostedFile != null && FileUpload_assignment.PostedFile.FileName != "")
         {
             FileUpload_assignment.SaveAs(Server.MapPath(path));
             //Image_preview.ImageUrl = path;
         }
     }
 }
コード例 #9
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         db.fillddl("select * from department", DropDownList_department, "dname", "did");
     }
     if (FileUpload_photo.PostedFile != null && FileUpload_photo.PostedFile.ContentLength > 0)
     {
         UpLoadAndDisplay();
     }
 }
コード例 #10
0
ファイル: Add_Attendance.aspx.cs プロジェクト: alwin-97/CSRMS
    protected void RadioButtonList_batch_SelectedIndexChanged(object sender, EventArgs e)
    {
        string b = RadioButtonList_batch.SelectedItem.Value;

        db.fillddl("select * from semester where batch=" + b, DropDownList_sem, "sem", "semid");
    }