<input class="btn btn-primary btn-default" name="commit" value="edit" type="submit" />
[HttpPost] [ValidateAntiForgeryToken()] public ActionResult EditUser(User postData, object usecaseobject) { if (ModelState.IsValid) { string status = "1"; User _User = new User(); db.Entry(postData).State = EntityState.Modified; db.SaveChanges(); ViewBag.name = "succss"; //here disable button } return View(postData); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)