dotnetspider.com
Login Login    Register      

TutorialsForumCareer DevelopmentResourcesReviewsJobsInterviewCommunitiesProjectsTraining

Subscribe to Subscribers
Talk to Webmaster
Tony John

Facebook
Google+
Twitter
LinkedIn
Online MembersAbul Bashar Sardar
Pritom Nandy
More...
Join our online Google+ community for Bloggers, Content Writers and Webmasters




Forums » .NET » ASP.Net MVC »

How to create a simple "Hello World" using ASP.NET MVC template?


Posted Date: 23 May 2012      Posted By:: ram     Member Level: Silver    Member Rank: 1612     Points: 1   Responses: 1



How to create a simple "Hello World" using ASP.NET MVC template?



Responses

#672259    Author: sudhajosyula      Member Level: Gold      Member Rank: 46     Date: 23/May/2012   Rating: 2 out of 52 out of 5     Points: 4

Check below Steps:

1.Open Visual Studio 2008,from the file menu, select new project then New Project Dialogue box appears.

2.Select the ASP.NET MVC Web Application Template and click ok.

3.Create Unit Test project dialogue box appears,if needed click ok.

4.After ASP.NET MVC Application is created. You will see several folders in Solution Explorer,see main three folders named Models, Views and Controllers.

5.If you expand the Controllers Folder, you will see a file named HomeController.cs and if you expand the Views folder you will see About.aspx and Index.aspx under Home Sub Folder.

6.If you want to display "Hello World".Just change the text see in the method Index of a HomeController.cs file as shown below

public ActionResult Index()
{
ViewData["Title"]="Home Page";
ViewData["Message"]="Hello World";
return View();
}


7.Debug and Run the web application.You are done!!!!!!



 
Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.



Next : Tigrina lexikon ???? ???? ??? http://seglelet.com
Previous : How can i switch over to one layout to another layout programatical in MVC3 razor engine
Return to Discussion Forum
Post New Message
Category:

Related Messages



Follow us on Twitter: https://twitter.com/dotnetspider

Active Members
TodayLast 7 Daysmore...

Awards & Gifts
Email subscription
  • .NET Jobs
  • .NET Articles
  • .NET Forums
  • Articles Rss Feeds
    Forum Rss Feeds


    About Us    Contact Us    Copyright    Privacy Policy    Terms Of Use    Revenue Sharing sites   Advertise   Talk to Tony John
    Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
    2005 - 2012 All Rights Reserved.
    .NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
    Articles, tutorials and all other content offered here is for educational purpose only.
    We are not associated with Microsoft or its partners.