protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { db.fillddl("select * from department", DropDownList_dep, "dname", "did"); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { db.fillddl("select * from semester", DropDownList5, "sem", "semid"); } }
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); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { db.fillddl("select * from subject", DropDownList_subject, "subjectname", "sid"); } }
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"); } }
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"); } }
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(); }
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; } } }
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(); } }
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"); }