Top Categories
Part 2 - CONTROLLER in Asp.net MVC | Role of Routing in MVC
- Category: Information Technology
- Sub Category: Web Development
In this video you will come to know about Asp.net MVC - Controller and how routing plays a great role .
CONTACT US: technotipstutorial@gmail.com
SOCIAL :
Facebook : http://facebook.com/technotipstutorial
Youtube : http://youtube.com/user/aapkanigam
Twitter : @technotipsMVC
VISIT OUR BLOG:
h
In this video you will come to know about Asp.net MVC - Controller and how routing plays a great role .
CONTACT US: technotipstutorial@gmail.com
SOCIAL :
Facebook : http://facebook.com/technotipstutorial
Youtube : http://youtube.com/user/aapkanigam
Twitter : @technotipsMVC
VISIT OUR BLOG:
http://technotipstutorial.blogspot.com
INTRODUCTION :
MVC stands for MODEL VIEW AND CONTROLLER
1. MODEL : This is your domain data .It just hold the application data and can be frequently used for getting records from database .
Watch this for more:Part 4- https://www.youtube.com/watch?v=yeUDYcvPF3A
2. VIEW : View is nothing but a user Interface .For example: your html page
Watch for more :Part 3- https://www.youtube.com/watch?v=Pt2UoRFuT-Y
3. CONTROLLER : It is used to control whole application flow .It just take data from Model and manipulate the and finally render to the View .
Watch this for more :Part 2- https://www.youtube.com/watch?v=g2GbL4hPOMg
BASIC FLOW :
In Asp.net MVC , controller task is to control the application flow.
When user request comes the first it goes to the router which checks that which controller and which method is being requested by user .So it just check it from route table and called the respective controller and method.In case if user does not provide the controller name and/or action name then the router just call the default controller and its method .
After that controller instance is created.In controller you can add several action method .In action method you can manipulate the data coming from mvc model and after manipulation you can return anything that you want .You can return the model to current view or redirect to other view by using RedirectToAction method. There are several ActionResult in mvc like Json,Redirect,RedirecToAction,View,PartialView etc.
So this is just small overview of asp.net mvc controller.
Also Watch this in sequence
Previous:
1. How to create a -website using Asp.Net MVC
https://www.youtube.com/watch?v=6adg6DRfIHI&feature=youtu.be
What Next:
3.What is View in Asp.net MVC
https://www.youtube.com/watch?v=Pt2UoRFuT-Y&feature=youtu.be
TAGS :
how to create a - website
asp. net mvc
asp.net mvc interview questions
asp .net mvc tutorial
asp. net mvc 4
asp.net mvc 5 tutorial
asp net mvc developer
asp net mvc continuous integration
asp net mvc hosting
model view controller
jquery-ajax
ajax jquery
jquery ajax tutorial
viewbag
$controller
$model
razor view engine