ttmind

Main Navigation

ttmind
  • jim-jams
  • Tech
  • Positive
Login

Login

Facebook Google

OR

Remember me Forgot password?

Don't have account? Signup here.

Sort by Categorys

.Net

PHP

Java

JavaScript

Database

Server

Client Side

Tools

Artificial Intelligence

Cloud

Hybrid Development

Event

Smart City

Education

Security

Scrum

Digital Marketing

APP Development

Business

Internet

Simulation

Art

Network

Microservices

Architecture

Technology

Leadership

    Top Articles

  • How Does Social Media Bring People Together?
    TTMind Author
  • How to read appSettings JSON from Class Library in ASP.NET Core
    Anil Shrestha
  • Printing Support In Asp.Net Core
    TTMind Author
  • HOW TO EXTRACT TEXT FROM IMAGE USING JAVASCRIPT (OCR with Tesseract.js)?
    Prakash Pokhrel
  • Images Upload REST API using ASP.NET Core
    Prakash Pokhrel
  • Related Topic

  • How to read appSettings JSON from Class Library in ASP.NET Core
  • Printing Support In Asp.Net Core
  • Images Upload REST API using ASP.NET Core
  • How to use IActionFilter, IAsyncActionFilter in ASP.NET Core MVC?
  • ASP.NET CORE - Blazor CRUD operation using ADO.NET
  • Tech
  • About Us
  • Contact Us
  • TechHelp
  • PositiveHelp
  • Jim-Jams Help
  • Terms & Conditions

© Copyright ttmind.com

Main Content

Partial View in ASP.NET Core MVC

.Net .Net Core about 7 years ago || 10/30/2018 || 1.6 K View

  • Hide

A partial view is a view which is loaded into another view. Partial views are an efficient method of breaking  large view into smaller modules. They can be used for reducing duplication of view content and on the same time making the view reusable.

Steps of creating Partial View in MVC

  1. Create a new project
  2. Goto web application, Select MVC.and provide the project name.
  3. Now,goto solution explorer and open Views
  4. Right click on Views and select Add and goto view option.

 

5.       Give View name and tick the  partial view option.

 

 

The  difference between views and partial views, and the difference is more about their usage, rather than technical.

View is used as full page of our application, it needs a layout, <html> and <title>. Partial views are like reusable view which can be used in other views. Partials doesnot represent whole page, they are inserted in other views.

For implementing the partial view,while return View("SampleView"); renders a view page, So returning that same view by writing return PartialView("SampleView"); renders contents, but doesn't render the contents of layout page.

 Partial View Features:

1.  Light weighted and fits into any view
2. It can be used as a reusable component. 
3. Partial view's are rendered inside another View.

  • 0
  • 0
  • 0
    • Facebook
    • Twitter
    • Google +
    • LinkedIn

About author

Manish Pandit

Manish Pandit

Reset Your Password
Enter your email address that you used to register. We'll send you an email with your username and a link to reset your password.

Quick Survey