Questions tagged [client-dependency]

Client dependency is a library for managing CSS & JavaScript dependencies and optimization in ASP.Net

CDF is a framework for managing CSS & JavaScript dependencies and optimizations your web application. It allows for each individual component in your web application to declare what CSS and JavaScript files they require instead of relying on a single master page to include all dependencies for all modules and of course handles all optimizations: minification, compression, caching, and so on....

Currently available at github

20 questions
3
votes
1 answer

What is the proper way to dynamically add CSS or JS using ClientDependency Framework?

I'm sorry to say, but the documentation is somewhat lacking here: https://github.com/Shazwazza/ClientDependency/wiki/Webforms I'm trying to register a dependency dynamically and cannot get the syntax right: <%@ Page Language="C#"…
Bogdan
  • 129
  • 10
3
votes
0 answers

ClientDependency 2nd level not resolving

I have a setup like this : Layout_Admin
codetantra
  • 258
  • 2
  • 11
2
votes
2 answers

window.dnnLoadScriptsInAjaxMode undefined in page administration module

I have a problem with my development machine dotnetnuke installation. When I try to load the content of the page administration module under "Admin / Page Management", I get a JavaScript error pages:2089 Uncaught TypeError: Cannot read property…
spankmaster79
  • 21,555
  • 10
  • 42
  • 73
1
vote
2 answers

Umbraco 8 - How to render two different JS Bundles using ClientDependency - RenderJsHere()

I want to render two different bundles of javascript files using RenderJsHere(). I have placed it at two different places on my page but it's showing all files (1st group + 2nd group of files) at both places. Can anyone please guide me on how to…
Ritz
  • 51
  • 1
  • 3
1
vote
1 answer

Cannot find the latest version of a package on NuGet

I am trying to update a package known as ClientDependency, which is needed for a Umbraco-built website's security feature. This has to be updated to the latest version 1.9.9, which however cannot be found in NuGet. I can only find 1.8.4 as the…
Linh Bui
  • 15
  • 6
1
vote
2 answers

Umbraco backoffice cache

I have a problem in my Umbraco backoffice, where alot of the clientside files are cached heavily, which is causing some problems. All the files loaded, is from /umbraco/Application and contains references…
brother
  • 7,651
  • 9
  • 34
  • 58
1
vote
1 answer

ClientDependency in umbraco doesn't include my bundles

Here is where I call the BundleManager: public class MyUmbracoApplication : UmbracoApplication { protected override void OnApplicationStarted(object sender, System.EventArgs e) { //register custom routes …
Giu
  • 1,832
  • 2
  • 16
  • 31
1
vote
3 answers

Umbraco Client Dependency Handler Error

Actually my website works fine in my local system(IIS Express) with debug=true and debug=false, but when i have published to Production environment it gives a "404 not found (dependency handler)" error for the following request with debug=false set…
Nikhil Prajapati
  • 944
  • 1
  • 12
  • 30
1
vote
0 answers

Umbraco 7.2.1 ClientDependency

When I am trying to go to Umbraco admin page I am getting this error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source…
StringBuilder
  • 1,619
  • 4
  • 32
  • 52
1
vote
2 answers

ClientDependency.Core.Mvc error in body

We have a website made with Umbraco/Razor. I upgraded the template with ClientDependency (Razor) as below. @using ClientDependency.Core.Mvc @{ Layout = null; @Html.RequiresCss("~/css/normalize.css") …
Kevin Restiaens
  • 218
  • 3
  • 15
1
vote
0 answers

?cdv parameter in ClientDependency framework breaks resource reference

In my ASP.NET MVC application I use ClientDependency framework to manage page dependencies of css and js. For versioning client dependency framework adds query string paramter to a request. For example, the line in…
Maxim V. Pavlov
  • 10,303
  • 17
  • 74
  • 174
0
votes
1 answer

Gzip compression of files in an umbraco solution

I have an Umbraco 4.7.x project (.NET 4.0 webforms) where I want to compress all html/css/js. Heres what ive done so far: I have the newest ClientDependency.Core.dll and Umbraco4.ClientDependency.dll in my bin folder and registered in my…
Kasper Skov
  • 1,954
  • 10
  • 32
  • 53
0
votes
1 answer

CleintDependency path with no Layout specified

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 { …
Maxim V. Pavlov
  • 10,303
  • 17
  • 74
  • 174
0
votes
1 answer

ClientDependency RequiresCss refresh

I'm using the following code these days to include my JS and CSS files within my (Umbraco) websites: @using ClientDependency.Core.Mvc; @{ Html.RequiresCss("link-to-file", 1); Html.RequiresCss("link-to-file", 2); …
Cryothic
  • 771
  • 7
  • 18
0
votes
1 answer

ClientDependency Framework & Razor, add custom JS

I'm trying to get the hang of ClientDependency Framework. https://github.com/Shazwazza/ClientDependency I use it in an Umbraco website. I'm having a problem with some custom javascript (not in a file) that I want to run. I want to run a function…
Cryothic
  • 771
  • 7
  • 18
1
2