Example #1
0
        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();
            }
        }
Example #2
0
        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();
            }
        }
Example #3
0
        private void DeleteData(int nRegulationID)
        {
            RegulationBLL regulationBLL = new RegulationBLL();

            regulationBLL.DeleteRegulation(nRegulationID);
        }