Kowsalya devi
What is the difference between view an partial view in mvc 4
By Kowsalya devi in ASP.NET MVC on May 17 2013
  • Bhabani Prasad
    May, 2014 23

    partial view() is Reusable view.but view() is a single page means which will render a normal .aspx page

    • 4
  • Ritesh Sharma
    May, 2014 5

    View can basically contains a complete markup which may contain a master view(or master page) with all the design(s) etc. whereas Partial view is only a portion of page or a small markup which don't have master page. It is basically used as user control in mvc and it can be used at more than one views.

    • 3
  • Ambadas Mehtre
    Mar, 2022 17

    View can basically contains a complete markup which may contain a master view(or master page) with all the design(s) etc.
    whereas Partial view is only a portion of page or a small markup which don’t have master page. It is basically used as user control
    in mvc and it can be used at more than one views
    Partial view() is reusable view i.e-Usercontrol but View() is a single page means which will render a normal .aspx page(.cshtml page).

    • 2
  • Pradeep Shet
    Jun, 2014 15

    Partial view is similar to ascx in asp.net i.e- usercontrol where as View is a whole cshtml page

    • 2
  • Damodar A
    Apr, 2014 14

    View:It means only one view in page. Partial View:It means one view with different views or coloumns

    • 2
  • Sanjoy Pal
    Mar, 2018 9

    • MVC view contains the layout page. • Before any view is rendered, viewstart page is rendered. • View might have markup tags like body, html, head, title, meta etc. • Partial does not contain the layout page. • In MVC Partial view is designed specially to render within the view and just because of that it does not consist any mark up. • Partial View is lightweight as compare to View.

    • 1
  • devendra kumar
    Feb, 2014 18

    Returning a View() will render a normal .aspx page that can also consist of Partial Views, while returning PartialView() will render an .ascx control (Basically a portion of HTML that can be requested through AJAX requests).return View(); //Returns a fully-featured HTML page with associated headers etc.return PartialView(); //Returns a portion of HTML that can be called via AJAX requests. However - if you are using the Razor View Engine, there will not be a major difference between the two. You could have a specific View that could be rendered as either a Partial View or as a traditional View, the difference would be if you used View or PartialView to call it.

    • 1
  • Sanjoy Pal
    Mar, 2018 9

    View: • MVC view contains the layout page. • Before any view is rendered, viewstart page is rendered. • View might have markup tags like body, html, head, title, meta etc.Partial View: • Partial does not contain the layout page. • In MVC Partial view is designed specially to render within the view and just because of that it does not consist any mark up. • Partial View is not lightweight as compare to View.

    • 0
  • Deepshikha Singh
    Apr, 2017 19

    it does not contain html body.

    • 0
  • Upendra Pratap Shahi
    Nov, 2015 2

    A partial view is a "sub-view" that you embed within a main view - something that you might reuse across multiple views, like a sidebar

    • 0
  • Vijay Kumar
    Aug, 2015 13

    View have layout , But partial view not have

    • 0
  • Ashwani Tiwari
    Jan, 2015 6

    best article i have found on this is http://completedevelopment.blogspot.com/2014/01/is-there-really-no-difference-between.html

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS