Sunday, 22 June 2014

1 :- Solution Explorer Structure Contains

Following Structure of Solution Explorer  Visual Stdio 2012 display in image:


Explain in Short:

·         App_Data folder - Holds the SQL Server Compact database file.
·         Content - Holds CSS files.
·         Controllers - Holds controller classes.
·         DAL folder - The data access layer.  Holds the context, initializer, repository, and unit of work classes.
·         Logging folder - Holds code that does logging.
·         Migrations folder - Holds EF Code First migrations code, including the Seed method.
·         Models folder - Holds model classes.
·         Properties or MyProject folder - Project properties.
·         Scripts folder - Script files.
·         ViewModels folder - Holds view model classes. 
·         Views folder - Holds view classes.
·         Visual Studio project file (.csproj or .vbproj).
·         packages.config - Specifies NuGet packages included in the project.
·         Global.asax file - Includes database initializer code.

·         Web.config file - Includes the connection string to the database.


Best Of Luck...

2 :- Intro .Net MVC4 using Visual Stdio 2012

Get Started

Start Visual Studio Express 2012. Select New Project from theStart page.New Project from the Start page, you can use the menu and select File > New Project.


Creating Your First Application
You can create applications using either Visual Basic or Visual C# as the programming language. Select Visual C# on the left and then select ASP.NET MVC 4 Web Application. Name your project "Student" and the click OK



In the New ASP.NET MVC 4 Project dialog box, select Internet Application. Leave Razor as the default view engine.




Click OK. Visual Studio used a default template for the ASP.NET MVC project you just created, so you have a working application right now without doing anything! This is a simple "Hello World!" project, and it's a good place to start your application.


From the Debug menu, select Start Debugging


 Browser display output Look like bellow:



this default template gives you  Home, Contact and About pages..


Best of luck..