COAddOns project site-Add-Ons for MiaCMS, Mambo & Joomla CMS

 Home arrow FAQs arrow How-To arrow ASP.NET MVC "Hello World"
Get Chitika | Premium
Pick Language to Auto Translate:
AR | BG | CA | CS | DA | DE | EL | ES | FI | FR | HI | HR | ID | IT | IW | JA | KO | LV | LT | NO | NL | PL | PT | RO | RU | SK | SR | SL | SV | TL | UK | VI | ZH | ZT
SiteMap :: Contact Us :: About Us :: Member Blog :: Newsfeeds :: How-To :: News :: CMS Info :: MosNews :: Web Tools :: IRC Chat  

Main Menu
Home
Forums
Downloads
CMS Category
Web Links
FAQs
Blog
MoseCMS
COAddOns Wiki
COAddOns Docs
Drupal resources
Who's Online
We have 508 guests online
MosCmenuTree

FAQs

Feature Sites
Web Hosting
Q's quickdeals
OpensourceCMS
CMS Matrix
Joomla Extensions
Joomla Templates
Login Form
Username

Password

Remember me
Password Reminder
No account yet? Create one
Donate
Support OngETC in making a small donation:
Syndicate

MosNewsWriter

ASP.NET MVC "Hello World" Print E-mail
User Rating: / 0
PoorBest 
For the first time you can easily create your ASP.NET web application using MVC pattern.  It only take a couple second depend on how fast your pc.

But first you will need the following:

. Visual Studio 2008
. NET Framework 3.5
. Microsoft ASP.NET MVC Beta which you can download from here

Once you have the above install on your pc, to create a new MVC project:

1. Click File menu then click New Project.

2. In the upper-right corner, make sure that .NET Framework 3.5 is selected.

3. Expand either Visual Basic or Visual C#, and then click Web.

4. select ASP.NET MVC Web Application.

5. Name your MVCAppName

6. In the Location box, enter a name for the project folder.

7. Enter a name for the solution in the Solution Name box.

8. Select Create directory for solution then click ok

9. Create a unit test project might display (only available version other than standard or express) then click ok

10. Click run which will invoke the internal web server

Done!  You got your first "Hello World" in ASP.NET MVC


Here is a quick summary of what was generated, the MVC project contains the following folders:

    * Content folder. This folder contains the cascading style sheet for the application.


    * Controllers folder. This folder contains the application's sample controllers, which are named AccountController and HomeController. The AccountController class contains basic login logic for the application. The HomeController class contains logic that is called by default when the application starts.


    * Models folder. This folder contains data model files (such as LINQ to SQL .dbml files) and data entity files.


    * Scripts folder. This folder contains script files, such as those that support ASP.NET AJAX and JQuery.


    * Views folder. This folder contains three subfolders: Account, Home, and Shared. The Account folder contains views that are used as UI for logging in and changing passwords. The Home folder contains an Index view (the default starting page for the application) and an About page view. The Shared folder contains the master page view for the application.


If you want to make some simple change to see what this thing look like you just go into view folder and change the file there and then run.  Of course when you are ready to get into more advance area like, content for CSS, conrollers to handle UI interaction which view to show and which model data to use, Models for your data logic, Views for used as UI, and Scripts for your AJAX stuff.  Interestingly enough it includes jQuery.js

Have fun!
Comments

There are no comments yet. Feel free to add one using the form below.

You are not authorized to leave comments. Please login first.
<Previous   Next>




Sponsors

Reseller hosting (free)

000webhost (free)

HostUpon (w/ ssh)

Hosting24 (w/ ssh)

Free TK domain

CO.CC:Free Domain

Get Chitika Premium

Free Windows Hosting


Credit Counseling - Arizona Landscaping - Phoenix Landscaping - Renegade Motorhomes
Validate XHTML
Validate CSS