Answers for "Exclude Properties in Binding"

0

Exclude Properties in Binding

[HttpPost]
public ActionResult Edit([Bind(Exclude = "Age")] Student std)
{
    var name = std.StudentName;
           
    //write code to update student 
            
    return RedirectToAction("Index");
}
Posted by: Guest on October-07-2021

Browse Popular Code Answers by Language