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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T05:22:53+00:00 2026-06-01T05:22:53+00:00

I have an ASP.NET MVC 3 site that makes use of a ClientDependency framework

  • 0

I have an ASP.NET MVC 3 site that makes use of a ClientDependency framework for dep. resolution (CSS/JS).

My base path’s are defined in /Shared/_Layout.cshtml like this:

@MvcHtmlString.Create(Html.RenderCssHere(new List<IClientDependencyPath> {
      new BasicPath("Base", "~/Content/themes/base"),
      new BasicPath("Content", "~/Content")
    }))

I want to have one page without a standard layout. I force it by calling

@{
    Layout = null;

    Html.RequiresCss("FileUpload/fileUpload.css", "Content", 20);
}

However, I can no longer request a dep. like shown above, since “Content” path isn’t defined.

I am rather new to ClientDependency framework, so which is the best way for me to get my dependencies in a non-layout view?

  • 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-06-01T05:22:54+00:00Added an answer on June 1, 2026 at 5:22 am

    I need to have the Path declared somewhere in the View, as well as the RenderCss/JsHere element, so if I don’t use a shared layout, I had to re-declare it in my custom page all together.

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

Sidebar

Related Questions

I have a asp.net mvc site that references a couple of libraries. Recently I
I have an ASP.NET MVC site and ELMAH is showing me that my site
Hi, I have a ASP.NET MVC site where I use the following links in
I have a asp.net mvc web site where I make use of the Dependency
I have a route in my asp.net mvc 2 site that looks like this
I have an ASP.NET MVC site that is hosted on an Amazon EC2 service.
I have a ASP.NET MVC site using Membership Provider. I have trouble testing some
I have a asp.net mvc site with a master page and it has following
i have a hosted web site and i have an asp.net mvc site. The
I have an ASP.NET MVC web site. I have many actions which require authentication

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.