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 4616376
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:58:21+00:00 2026-05-22T01:58:21+00:00

I have been using MVC for a while now and am quite happy with

  • 0

I have been using MVC for a while now and am quite happy with it overall compared to the old ASP.NET framework. Combine it with jQuery and EF and life is good.

One thing that really annoys me about it though is all the index views I end up having. It seems every one of my controllers has an index action. So I have many views named “Index” and find it hard to keep track of them in the IDE. It is not uncommon to have multiple tabs open with “Index.cshtml”, I have no idea what controller it belongs to without hovering over the tab. It gets confusing quick. The same thing ends up happing with Create, Update, Delete actions that are common to a lot of controllers.

Maybe I should include the controller name in the views, to help keep them straight? Curious what others are doing to avoid this problem.

  • 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-22T01:58:22+00:00Added an answer on May 22, 2026 at 1:58 am

    I have the same problem and in the true “Convention over configuration” style, I’ve come up with my own convention to use the Controller + Action name for my views.

    I use spark, so this was a case of writing a custom descriptor or with Razor, you write a custom view engine that extends from the default RazorViewEngine and build your conventions in there. This article gives you an idea of how to do it.

    That way I can have the Index action in the Account controller called AccountIndex.spark (or .cshtml) and I can still return View() or PartialView() from my action without having to specify the view name.

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

Sidebar

Related Questions

i am using asp.net MVC and have been using mvc for quite a while
I've been developing a site using ASP.NET MVC, and have decided to use the
I have been using the following regular expression in ASP.NET and Javascript: [a-zA-ZöäüÖÄÜß0-9]{1}[a-zA-ZöäüÖÄÜß0-9_.\-]{2,14}[a-zA-ZöäüÖÄÜß0-9.!]{1} Now,
I'm using ASP.NET MVC 3 with Entity Framework CodeFirst I have two classes as
I have been working on ASP.NET MVC for a while and loving it so
I have been working in ASP.NET Web Applications (not MVC) for a while at
For past projects(the last few have been web using asp.net mvc) we created a
Validation using attributes in asp.net mvc is really nice. I have been using the
I have been using Zend Framework for a while now. I am having an
I have been using the Zend Framework with an MVC configuration, read about Ruby

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.