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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:11:39+00:00 2026-05-26T17:11:39+00:00

I built a small module in ASP.net MVC which consists of a javascript file

  • 0

I built a small module in ASP.net MVC which consists of

  • a javascript file
  • a css file
  • a razor partial view
  • a c# model class

If I use the standard way to manage the files, I have to spread them in these folders:

  • /Scripts
  • /Content/css
  • /View
  • /Models

I know that MVC is for separating them and it’s fine for the application but i my case I would be happier to have all files somewhere together.

There are area’s in MVC but I think that’s to big for a small module. All I want is to build a small package in my application for the files of this module.

Any good approach for this? How do you handle this?

  • 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-26T17:11:39+00:00Added an answer on May 26, 2026 at 5:11 pm
    • /Scripts
    • /Content/css
    • /View
    • /Models

    This is just the structure that the default asp.net mvc project template imposes.

    You can have any structure you like, but I would recommend keeping your Views and Model separate.

    Since our “Model” usually sits in a different assembly our MVC project structure is normally:

    • Application (all application infastructure code)
    • Content
      • css
      • images
      • scripts
    • Controllers
    • ViewModels
    • Views

    Again this is personal preference but I typically like to keep my static assets (css,images,scripts) under one directory.

    You can of course separate things out even further. For example if we’re using a javascript plugin that has it’s own “core” css and images then we normally keep these together e.g.:

    • Content
      • css
      • images
      • scripts
        • libs
          • myplugin
            • myplugin.js
            • myplugin.css
            • myplugin.png

    Of course as you split things out in this way it can become hard to manage. For this reason we use Client Dependency Framework. You could also try Cassette.

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

Sidebar

Related Questions

I have an application, built using MVC, that produces a view which delivers summary
I built a small ASP.NET application. It has a global.asax and sets some session
I've built a small application which has User Management, a frontend console to enter
i built a small app in vb.net and i would like my icon to
I have a huge multi-module project , which is being built using maven. Most
I've build a small module in python which takes a list of strings/buffers in
I've built a small User Control which is essentially a DropDownList with some preset
So far I've only built small graphical applications, using swing and JComponents as I
I'm playing around with django and built a small app where a user can
I am a broke college student. I have built a small web app in

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.