How To Create ASP.NET MVC Basic Application

Subscribers:
107
Published on ● Video Link: https://www.youtube.com/watch?v=kitpl9XWpso



Category:
Guide
Duration: 24:01
33 views
5


Hello Guys,
Today is very exciting topics.
how to create a asp.net mvc application?
before we start the session,if you like this video,please subscribe this video.

let start
what is requirement of asp.mvc application
1.visual studio
2.sql management studio
3.bootstrap cdn

first of all open the visual studio we need to create projects so go to file then
select ASP.NET MVC 4 WEB APPLICATION then select empty templates.
1.HOW TO CREATE A MODEL
after the created new file go to solution explorer
right click Models Folder,add then class and assign class name.for example i have assign name like user.cs.

then type the code
public class User
{
[Required(ErrorMessage = "Username is required")]
public string username { get; set; }

[Required(ErrorMessage = "Email is required")]
public string email { get; set; }

[RegularExpression("(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[#&-@$]).{8,20}", ErrorMessage = "Password is weak")]
public string password { get; set; }
}
this code is only models.
2.HOW TO CREATE A VIEW
right click view folder add new folder and assign the name like shared
then we need to create a _Layout page(this is the master page of the view)
right click shared folder add view and assign the name _Layout(NOTE:Don't change the name of when creating layout page) then create a header page
follow the same steps and create second view (_Header).then create a footer page follow same steps(_Footer)
after complete the structure go to layout page
create basic structure of html
this is the code of layout page
http://www.mediafire.com/folder/wve3fw4aychkr/asp.net_apps

create a header page
follow this link
http://www.mediafire.com/folder/wve3fw4aychkr/asp.net_apps

3 CREATE CONTROLLER
create three controller
Homecontroller
Logincontroller
Registercontroller
4.CREATE THIS CONTROLLER VIEW
1.Open Home Controller (right click index method and add view,after add master layout page path then press ok)
2.Login(Same step follow above step)
3.Register(Same step follow above step)

If you any case you have doubt in this session,please comment on doubt or drop you email id i will solve your doubt regarding this session

If you like this video,Please Subscribe this video.

Thanking You For Watching This Video

For more information
follow this link:
http://www.hiteshchauhan.com

Facebook Page
http://www.facebokk.com/hts.chauhan

Instagram Page
http://www.instagram.com/hts.chauhan







Tags:
Razor
Entity Framework
Tutorial
Web Application
Visual Studio
ASP.NET MVC
Model view controller
Asp.net mvc framework (software)
Visual studio
C#.net
Entity framework
Repository pattern
Mvc
Asp.net mvc
Asp.net
.net
C#
Asp net mvc url and iis
How asp.net mvc works
How iis process mvc request
How mvc request is processed
Visual studio create mvc application
Create asp.net mvc application
How to create mvc application in visual studio 2013