Exemple #1
0
        protected void cmdView_Click1(object sender, ImageClickEventArgs e)
        {
            DataTable nTable = Roles_Data.GetList(txtSearch.Text);

            GV_Roles.DataSource = nTable;
            GV_Roles.DataBind();
        }
Exemple #2
0
        protected void OnPaging(object sender, GridViewPageEventArgs e)
        {
            GV_Roles.PageIndex = e.NewPageIndex;
            DataTable nTable = Roles_Data.GetList(txtSearch.Text);

            GV_Roles.DataSource = nTable;
            GV_Roles.DataBind();
        }
Exemple #3
0
        public void LoadData()
        {
            DataTable nTable = Roles_Data.GetList("");

            GV_Roles.DataSource = nTable;
            GV_Roles.DataBind();
            DateTime dt = DateTime.Now;
        }
Exemple #4
0
 protected void GrDelete(object sender, CommandEventArgs e)
 {
     try
     {
         string    mKey = e.CommandArgument.ToString();
         Role_Info info = new Role_Info(mKey);
         info.Delete();
         DataTable nTable = Roles_Data.GetList(txtSearch.Text);
         GV_Roles.DataSource = nTable;
         GV_Roles.DataBind();
     }
     catch
     {
         Response.Write("<script >alert('Có lỗi gì đó vui lòng thử lại!')</script>");
     }
 }