Yang core study notes

2.0 video notes

1: ModelState.IsValid binding model if continuity verified by the return true.
2: this.ControllerContext.ActionDescriptor.ControllerName get the name of the Controller.
3: this.ControllerContext.ActionDescriptor.ActionName get the name of the Action.

4: RedirectToAction ( "redirected action") redirection, may be prevented Form to repeat.

5:

[HttpPost]
[ValidateAntiForgeryToken] to form a post submitted prevent cross submit verification station

 

Guess you like

Origin www.cnblogs.com/jiangyunfeng/p/12370841.html