Getting Started with ASP.NET MVC 5
This tutorial will teach you the basics of building an ASP.NET MVC 5 web app using Visual Studio 2013. Download the completed project. This tutorial was written by Scott Guthrie (twitter@scottgu ), Scott Hanselman (twitter: @shanselman ), and Rick Anderson ( @RickAndMSFT ) You need an Azure account to deploy this app to Azure: You can open an Azure account for free - You get credits you can use to try out paid Azure services, and even after they're used up you can keep the account and use free Azure services.You can activate MSDN subscriber benefits - Your MSDN subscription gives you credits every month that you can use for paid Azure services. Getting Started Start by installing and running Visual Studio Express 2013 for Web or Visual Studio 2013. Visual Studio is an IDE, or integrated development environment. Creating Your First Application Click New Project, then select Visual C# on the left, then Web and then select ASP.NET Web Application. Click F5 to start debugging.
Lambda Expressions (C# Programming Guide)
A lambda expression is an anonymous function that you can use to create delegates or expression tree types. By using lambda expressions, you can write local functions that can be passed as arguments or returned as the value of function calls. Lambda expressions are particularly helpful for writing LINQ query expressions. delegate int del(int i); static void Main(string[] args) { del myDelegate = x => x * x; int j = myDelegate(5); //j = 25 } To create an expression tree type: using System.Linq.Expressions; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { Expression<del> myET = x => x * x; } } } The => operator has the same precedence as assignment (=) and is right-associative. In the previous example, notice that the delegate signature has one implicitly-typed input parameter of type int, and returns an int. (input parameters) => expression The parentheses are optional only if the lambda has one input parameter; otherwise they are required. Reference Concepts
MVC interview questions with answers
Download MVC.zip - 1.1 MB Table of contents Disclaimer Reading these MVC interview questions does not mean you will go and clear MVC interviews. If you want to learn MVC from scratch, start by reading Learn MVC ( Model view controller) step by step 7 days or you can also start with my step by step MVC (Model View Controller) video series from YouTube. Need help to improve this article I have tried my level best to cover what questions i have faced in MVC interviews. What is MVC (Model View Controller)? MVC is an architectural pattern which separates the representation and user interaction. The View is responsible for the look and feel. Figure: MVC (Model view controller) Explain MVC application life cycle? There are six broader events which occur in MVC application life cycle below diagrams summarize it. Image Courtesy: - Creating the request object: -The request object creation has four major steps.
Learn MVC (Model view controller) Step by Step in 7 days – Day 2
Contents So, what’s the agenda? In day 2 we will look into the following four labs: Writing unit tests on MVC projects.Configure MVC routings. Validating MVC routes.Configure MVC outbound routes. Get links of other parts of MVC article as below: - Day 1: -Controllers, strong typed views and helper classes Day 2: - Unit test, routing and outbound URLS Day 3:- Partial views, Data annotations,Razor, Authentication and Authorization Day 4:- JSON, JQuery, State management and Asynch controllers Day 5:- Bundling , Minification , ViewModels,Areas and Exception handling So let’s start with the above 4 labs one by one. So what’s in the next lab
Learn MVC (Model view controller) Step by Step in 7 days – Day 1
Contents About the Authors Just a quick word on both the author’s. You can visit their video learning site for MVC i.e. www.questpond.com and for offline training contact them at here So, what’s the agenda? As the article name says, learn MVC; so the agenda is simple, we are going to learn ASP.NET MVC in 7 days. For the first day we will start with a a simple Hello World,passing data between controllers and views , HTML helper classes , MVC models and we will also create a simple customer data entry page. MVC vs Webforms vs ASP.NET vocabulary Lot of developers think that ASP.NET is different and MVC is different. ASP.NET is a web framework of Microsoft and MVC is a visual studio code template to write code using MVC architecture style. So let us this straight ASP.NET is a framework while MVC and Webform are coding styles. So why MVC and why is better than Webforms? As a ASP.NET Webform developer you will miss lot of your favorites in MVC. Pre-requisite for MVC
Related:
Related: