//根据当前按钮生成命名空间

protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
        {

                GridViewRow row = (GridViewRow)((e.CommandSource as ImageButton).NamingContainer);
                string menu_name = (row.FindControl("txtEmptyName") as TextBox).Text.Trim();
                string menu_description = (row.FindControl("txtEmptyDesc") as TextBox).Text.Trim();
                string menu_url = (row.FindControl("txtEmptyURL") as TextBox).Text.Trim();
                if (MenuBusiness.AddMenu(menu_name, menu_description, menu_url, login_user.UserId) > 0)
                {
                    this.Alert("successfuly!");
                    BindMenuList();
                }

}

相关文章:

  • 2021-05-21
  • 2022-12-23
  • 2021-11-15
  • 2021-08-14
  • 2021-10-13
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-10
  • 2021-05-21
  • 2022-12-23
  • 2022-12-23
  • 2021-12-16
  • 2021-09-03
相关资源
相似解决方案