Reputation: 9670
I don't get it. How does it works with CDN and not when I copy the CSS down to a local .CSS and reference it through BundleConfig.cs in MVC? I don't even know where to find the image.
Works CDN: (Gives up/down arrow in datatable header)
@Styles.Render("http://cdn.datatables.net/plug-ins/9dcbecd42ad/integration/bootstrap/3/dataTables.bootstrap.css")
Doesn't work: .CSS
BundleConfig.cs:
bundles.Add(new StyleBundle("~/Content/dataTablesBootstrap").Include(
"~/Content/dataTables-bootstrap.css"
));
_Layout.cshtml:
@Styles.Render("~/Content/dataTablesBootstrap")
Error:
"NetworkError: 404 Not Found - http://localhost/WebConsole53/images/sort_both.png"
Upvotes: 1
Views: 811
Reputation: 7348
I suggest you download the ZIP from here: datatables.net/download/download.
Copy the CSS Files to your:
/Content/
OR styles
And copy your Images to
/images/
And it should work. I don't think you have to change the Reference in the css files
IF
/content/
and /images/
folder are in the same Directory
Upvotes: 2