Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6167519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:31:39+00:00 2026-05-23T22:31:39+00:00

how does visual studio determine which is a view vs a partial view? Another

  • 0

how does visual studio determine which is a view vs a partial view? Another question would be; is there a way to convert my views into partial views?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T22:31:41+00:00Added an answer on May 23, 2026 at 10:31 pm

    In Razor there is no distinction between views and partial views as there is in WebForms (.aspx vs .ascx). In Razor all views are templates. Those templates could have a Layout:

    @{
        Layout = "~/Views/Shared/_Layout.cshtml";
    }
    

    In this case they are views. If there is no layout specified they could be considered as partial views. The Layout is usually defined in the ~/Views/_ViewStart.cshtml file.

    This being said if from your controller action you return PartialView(); instead of return View(); this layout will not be applied.

    I would recommend you reading the following blog post about Razor views and layouts.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does Visual Studio .NET have a way to toggle word-wrap on and off? I
Does Visual Studio have a capability, or is there a VS plug-in, that will
Does visual studio 2008 support classic asp development? It's been years since I created
Does Visual Studio Tools for Office require Office to be installed in order to
Does Visual Studio .NET 2008 come with UISpy? I ask this for for the
Does Visual Studio / Resharper support this? By refactor copy I mean to be
Why does Visual Studio declare new classes as private in C#? I almost always
Why does Visual studio take so long to delete a file from the solution
How does visual studio link files to their corresponding designer.cs files? I have a
With Visual Studio 2010 right around the corner, what does Visual Studio 2008 Professional

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.