Problems are like lock & Solution are like key. Don't focus on problems but find the key.

Hello World in MVC 3.0

Create Hello world application in MVC 3.0

Getting Started

You have need to MVC 3.0 and .Net framework 4.0 installed on your PC for implementation of Hello World in MVC 3.0

Download source code => HelloWorld.rar

1.  Create a new Asp.net MVC 3 Web Application, Open Visual Studio 2010 > File > New Project > Select the language (C# or VB.NET) > from the templates, select Asp.net MVC 3 Web Application from the installed templates and enter a name for the application.

start

2. On clicking OK.
3. Next step select Project template “Empty” and View Engine “Razor”

template

4. On clicking OK.

Now you can see some folder is create in your project like below image.

defaultstructure

 

 

 

 

 

 

 

 

 

5. Now right click on Controller folder -> Add -> Controller for add new controller in your project.
AddController

6. Enter your controller name Like Home.

saveController

 

 

 

 

 

 

7. Now Click on Ok Button. Your controller is created. and you can see one method is create “Index”.

8. Right Click on “Index” or inside Index method and Click on Add View.

AddView
9. Now you can see one popup is open. Give your View Name and click on Add Button.SaveView

 

 

 

 

 

 

 

 

 

 

 

 

10.You can see your view is created.

createView

 

11.Now press F5 to Run your application.

12. Check Result
result

Please give your Feedback.

My self is Sandeep Bhadauriya.I am working on Microsoft Technologies. I have more than 2+ Years Experience in Microsoft Technologies. My Key Skill is Asp.net,C#,MVC 3, JavaScript, jQuery, SqlServer. I am currently working on MVC 3.0. Twitter : @devssolution

Posted in Asp.Net, MVC

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Categories