Thursday, October 16, 2014

What is Asp.net Mvc Framework ?


MVC stands for Model, View, Controller architecture. Asp.Net MVC is architecture to develop web application with MVC are even more SEO friendly.

for developing Asp.net MVC application require .Net Framework 3.5 or higher.


MVC FRAMEWORK






What is MODEL?

  • Model is basically entity or c# class.
  • Model is accessible by Controller & View.
  • Model pass data from Controller to View. When Submit form then call Controller action and pass model data to database and return view or partial view with Model.
  • Model is use to display data in View.


What is CONTROLLER?


  • Controller is basically a collection of action methods which are responsible for calling view or partial view.
  • Controller is base of MVC architecture
  • Controller can access and use model class to pass data to views
  • Controller can access model to pass data to views
  • Controller use ViewData, ViewBag, TempData to pass data to View


What is VIEW?


  • View is Aspx or Razor without having cs or vb file.
  • View can be call only from a controller’s action method
  • View can have Ajax.Beginform and Html.Beginform for submit data with optional parameters
  • View can have multiple partial view using  @Html.RenderPartial("partialviewname") or   @Html.Partial("partialviewname")



I hope you understand about Mvc Framework after read this post. if you have any query regarding
Mvc Framework you can comment or contact us on mehulpatelk152@gmail.com.

No comments:

Post a Comment