protected void btnQuery_Click(object sender, EventArgs e) { // int nID = int.Parse(Request.QueryString["id"]); RegulationBLL regulationBLL = new RegulationBLL(); IList <RailExam.Model.Regulation> regulations = regulationBLL.GetRegulations(txtRegulationName.Text, txtRegulationNo.Text, int.Parse(ddlStatus.SelectedValue)); if (regulations != null) { Grid1.DataSource = regulations; Grid1.DataBind(); } }
private void BindGrid() { string strIDPath = Request.QueryString["id"]; RegulationBLL regulationBLL = new RegulationBLL(); IList <RailExam.Model.Regulation> regulations = regulationBLL.GetRegulationsByCategoryIDPath(strIDPath); if (regulations != null) { Grid1.DataSource = regulations; Grid1.DataBind(); } }
private void DeleteData(int nRegulationID) { RegulationBLL regulationBLL = new RegulationBLL(); regulationBLL.DeleteRegulation(nRegulationID); }