DotNet Solution

  • Home
  • Asp.net
    • Controls
    • DataControl
    • Ajax
  • Web Design
    • Html
    • Css
    • Java Script
  • Sql
    • Queries
    • Function
    • Stored Procedures
  • MVC
    • OverView
    • Create First Application
  • BootStrap
    • Collapse Function

Saturday, 17 December 2016

Create First MVC Application

  Unknown       21:28       No comments    

How to create MVC First simple application

It is very easy to make application in mvc follow some steps and create first application

STEP 1 - Click on Start menu and  Open Visual studio.


STEP 2 - Open View folder click Home folder and click index page run and see on  home this is by default in Poject inbuilt page so see esaly. And if we create new Controller then see right click on controller folder and add new controller.


STEP 3 - Open A window and choose Empty controller and click on add button->  open next we give name of the controller.
Ex. we Give name Simplecontroller and click add button. In application add controller like.


In This index is by default create action.
  public class SimpleController : Controller
Controller is base class inherit this controller.
STEP 4 -  Add on view Right click on Index method ->click on  ->Add View. open new window.



Give name view and if we add layout page (master page then choose in drop down if no then leave empty) and click Add button 
Ex. in this View index name and create page in View folder-> simple folder->Index page. now we ready to code.




Save yhis content and run this page.
Output-

  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
Email This BlogThis! Share to X Share to Facebook
Newer Post Older Post Home

0 comments :

Post a Comment

Popular Posts

  • Auto Increment Id in Sql Server
    SQL server identity column values use in table Steps- Firstly Open-> Sql Server Create Table -> First Field Like ID Usually Autoi...
  • Alter Query
    To add a column in a table, use Alter Query the following syntax: ALTER TABLE table_name ADD column_name datatype. To delete a column ...
  • Javascript Regular Expression Email Validate
    Validate Email using Regular Expression In JavaScript- 1. Create Input type Text box and and onclick cal  checkemail function of Javascr...
  • (no title)
    SQL SELECT Query The SELECT statement is used to select data from a database. Query SELECT * FROM TABLE NAME. Use this query we get All...
  • Rank Given In Table
    Rank Given in Table in SQL Server If We Want to Give Indviual Rank And Same Rank to Same data Then Use Use Of  ROW_NUMBER() Function  ...
  • MVC OverView
    I ntroduction The Model-View-Controller (MVC) architectural pattern separates an application into three main components: the model, the v...
  • Values Enter With SplitFunction in Sql Server
    Basically We Use Split Function Thorugh Commma Sepertaed string value with  Comma  Means One Then more value through split function Enter...
  • How To Timer Work in Asp.net
    Using a Timer Control Inside an UpdatePanel Control When the Timer control is included inside an UpdatePanel control, the Timer contro...
  • Open First Application in MVC
    How To Create First Application in MVC.Follows Some Steps-    STEP 1 . Firstly Go Start menu in Computer And Click on Installed Visual s...
  • The Evolution of MVC
    Microsoft had introduced ASP.NET MVC in .Net 3.5,since then lots of new features have been added.The following table list brief history of ...

Blog Archive

  • ▼  2016 ( 36 )
    • ►  February ( 1 )
    • ►  March ( 5 )
    • ►  April ( 1 )
    • ►  June ( 10 )
    • ►  July ( 6 )
    • ►  November ( 8 )
    • ▼  December ( 5 )
      • Collapse Function Use in Bootstrap.
      • Email Validation In JavaScript
      • Javascript Regular Expression Email Validate
      • Open First Application in MVC
      • Create First MVC Application
  • ►  2017 ( 1 )
    • ►  January ( 1 )
Powered by Blogger.

Categories

  • Ajax
  • AllFunction
  • Controls
  • CreateApplication
  • css
  • Function
  • javascript
  • Js
  • over view
  • OverView
  • Queries
  • StoredProcedures

Text Widget

Sample Text

Pages

  • Home

Copyright © DotNet Solution | Powered by Blogger
Design by Vibha Acharya