how can i load js or css files to bundle from external location outside of application

567 Views Asked by At

I have a requirement where i want application to load all css and js file from a share directory, i researched and found that bundle config includes directory from virtual application path only, so is there any way i can load it from external drives or folder? Or is there anything else i can use to meet my requirement. i need something like this

  StyleBundle scriptBundleshare = new StyleBundle("\\diectory\folder");     

  scriptBundleshare.IncludeDirectory(pathToshare, "*.css");
  bundles.Add(scriptBundleshare.OrdinalPositionOrdered());
1

There are 1 best solutions below

2
Bhadresh Shiroya On

You can read directory all file name then iterator loop And Create Html tag One StringBuffer or any Other Way And Print Html File