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

  • SEARCH
  • Home
  • 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 3938598
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T00:12:10+00:00 2026-05-20T00:12:10+00:00

How can i directly access a .cshtml file in ASP.NET MVC using razor view

  • 0

How can i directly access a .cshtml file in ASP.NET MVC using razor view engine?

For example i have this url: localhost/Home/About. This will load the about site inside the “master” page.

I want to load the about page without also loading the master page. So i was thinking that i could use this url: localhost/Home/About.cshtml. But it’s not working.

How can i load a view page without loading the master page?

  • 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-20T00:12:11+00:00Added an answer on May 20, 2026 at 12:12 am

    You can use the method Html.Partial like this:

    @Html.Partial("About")

    Edit

    I might have missunderstood your question. If you want to avoid including the master page you need to remove the layout.

    Add this to the top of your View:

    @{
         Layout = null;
     }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the understanding that using data access routines directly from presentation code is
A I have a PHP file that if the user access it directly he
can you recommend some good ASP.NET tutorials or a good book? Should I jump
How can I access 'directly' the data between 200th and 300th characters in a
Can I save page pictures from GreaseMonkey script directly to my hard drive? Is
I heard somewhere that you can drop down to C++ directly inside C# code.
The examples I can find use a two layer architecture, where the controllers directly
Perhaps not directly programming related, but definitely product / commercially related. And I can't
Can a LINQ enabled app run on a machine that only has the .NET
This sounds like a really basic question. Let's say I have the following Form

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.