protected void btnSearchStudent_Click(object sender, ImageClickEventArgs e) { try { ME1.Show(); } catch (Exception Ex) { } }
protected void chkall_checkedchanged(object sender, EventArgs e) { if (chkall.Checked == false) { Session["EMPID1"] = Session["EMPID"].ToString(); } else { Session["EMPID1"] = "0"; } //dsDetails.UpdateParameters["empid"].DefaultValue = Session["EMPID1"].ToString(); dsDetails.Update(); ME1.Show(); }
protected void gvStayBackReason_RowCommand(object sender, GridViewCommandEventArgs e) { if (!isalloweddatedate() && Session["RoleId"].ToString() != "9") { Response.Write("<script LANGUAGE='JavaScript' >alert('This facility is blocked by administration, Contact Admin!!.')</script>"); return; } try { if (e.CommandName == "View") { DataTable dt; string csId = Convert.ToString(e.CommandArgument); dt = CGeneralFunction.filldata("Usp_BatchwiseStatus " + csId); if (dt.Rows.Count != 0) { gridView.DataSource = dt; } else { gridView.DataSource = null; } gridView.DataBind(); ME1.Show(); } else { int ClassSectionId = Convert.ToInt32(e.CommandArgument.ToString()); DataTable dt = CGeneralFunction.filldataattendance("select ClassId,SectionId from tblClassSection where Id='" + ClassSectionId + "'"); Session["Class_Id"] = dt.Rows[0]["ClassId"].ToString(); Session["Div_Id"] = dt.Rows[0]["SectionId"].ToString(); Session["ClassSectionId"] = ClassSectionId; Response.Redirect("Attendance.aspx?CId=" + ClassSectionId + "&&DDate=" + txtDate.Text.Trim(), false); } } catch { } }
protected void BtnSearchStudent_Click(object sender, EventArgs e) { ME1.Show(); }
protected void txtSearch_TextChanged(object sender, EventArgs e) { SearchString = txtSearch.Text; ME1.Show(); }
protected void OnPageIndexChanging(object sender, GridViewPageEventArgs e) { gvDetails.PageIndex = e.NewPageIndex; gvDetails.DataBind(); ME1.Show(); }