A separate project for unit testing.
Individual user accounts for authentication.
Hosting the application in a Windows Azure cloud account.
Integration of Web Forms and Web API code along with MVC.
Site map page
Unhandled error page
True. Controllers can do this on their own.
False. Behind the scenes, a Model and a View are being invoked. Controllers don't do anything by themselves.
Provide the correct URL link from a friendly search string
Can only be used with a GET, not a POST
True. Views are fed data from the interaction with the Model and the Controller.
False. Views are a traditional user interface component.
Simply by pointing a browser at the View's address.
When instructed to do so by a Controller, and (usually) after getting data to display from a Model.
Allow you to set a Model class type for a View
IntelliSense help from Visual Studio
Allows ViewBag to efficiently deal with large quantities of data
Compiler is checking the syntax of your code
Telling the user that what follows is an email domain name.
Telling the Razor view engine that what follows is code, not HTML text.
Telling the browser that what follows is a return to normal HTML
Doesn't have to specify the View's folder because each action method has a folder and is called through the MVC routing mechanism.
Doesn't have to specify the View's filename because each controller folder contains a view file named for each action method.
It is returning View because these simple examples are handling everything within the controller, there is no View.
It is returning a new View object that is empty.
Return new View("NotIndex");
Empty (with or without a Model)
Display (send to a view)
Perform business calculations
Instance variable storage
Utility methods such as print, ToString, etc.
Cshtml files (as partial classes)
C# (.cs) files (as C# classes)
Examine the Model definition and generate a Controller
Generate the generated Controller's associated Views
Generate boilerplate for CRUD operations in the app
Generate the business rule logic that your application addresses, such as selling flowers, etc.
MVC 5 Controller with read/write Actions
MVC 5 Controller with Views, Using Entity Framework
Web API 2 API Controller Scaffolders
MVC 5 Controller - Empty
Model-Controller sync tool
Makes it easier to pull all fields from a model based on various different data types of the properties in the model
Can search through the query string, route data, or the form collection to find values that need binding.
Can automatically detect a security concern of an over-posting attack by not binding an unexpected value
Without the Form tag, the internet would be a read-only repos of documentation (Web 1.0)
MVC uses the form tag to create an HTTP GET request.
Using the form tag keeps web developers in sync with the intended utilization of GET and POST.
ASP.NET supports the form tag in the use of Web Forms, but developers coming from that background will have additional support mechanisms to learn for MVC.
MVC uses the form tag to create an HTTP POST request.
Methods you can invoke on the Html property in a View
Make sure that URLs point to the correct locations
Inject data values into your HTML using the Razor tags
HTML form elements have the correct names and values for model binding
URL helpers (via the Url property)
Ajax helpers (via the Ajax property)
URL helper from within the controller
JSon helper from the data store
C# auto-implemented property
DHCP starvation attack
Regular instance method
One of the HtmlHelper built-in extension methods
Public override method
Client validation on a web site that can give a user instant feedback on the information they enter into a form
A feature that is more or less expected in today's web applications
Server validation logic is in place because your application should never trust information arriving from the network.
Validation of what is already in the database
Client side validation
Server side validation
Handling of user interface issues associated with display of error messages
Providing some mechanism for users to recover from validation failures
All of the above