Beispiel #1
0
        protected void lvAdminList_ItemUpdating(object sender, ListViewUpdateEventArgs e)
        {
            NewModel newModel = new NewModel();

            newModel.ID       = e.Keys["id"].ToString();
            newModel.UserName = e.NewValues["UserName"].ToString();
            //newModel.PassWord = e.NewValues["PassWord"].ToString();
            if (admin.UpdateAdmin(newModel) == 1)
            {
                lvAdminList.EditIndex = -1;
                BindAdmin();
                return;
            }
            JSHelper.Alert("更新失败");
        }