ASP
Active Server Page
Razor Syntax Rules for C#
Main Razor Syntax Rules for VB
The root on a disk drive C:\ (backwark slash)
The root on a web site is / (forward slash).
~ Operator
Virtual root in programming code
Server.MapPath Method
The Server.MapPath method converts a virtual path (/default.cshtml) to a physical path that the server can understand
non-breaking space
MVC
IDE
Integrated development environment
Default MVC URL
/[Controller]/[ActionName]/[Parameters]
C# optional-parameter
EF
Visual Studio automatically created the CRUD action methods and views
(create, read, update, and delete)
@Html.ActionLink(“Edit”, “Edit”, new { id=item.ID })
HttpPost attribute
[HttpPost]
This attribute specifies that that overload of the Edit method can be invoked only for POST requests
Bind attribute
public ActionResult Edit([Bind()] )
The Bind attribute is an important security mechanism that keeps hackers from over-posting data to your model
ModelState.IsValid method
Verifies that the data submitted in the form can be used to modify (edit or update) an object
Html.ValidationMessageFor
The Html.ValidationMessageFor helpers in the Edit.cshtml view template take care of displaying appropriate error messages.
LINQ
Language-Integrated Query
The s => s.Title code
Lambda Expression used in method-based LINQ queries as arguments to standard query operator methods