Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82001

Does the editor work for cshtml files?

$
0
0

I'm initializing my Datatable in a cshtml partial view, however when I try to include Datatables I'm getting an error.

cshtml file:

@using VPAI.Areas.DynamicScheduling.Models
@using System.Reflection
@using System.ComponentModel
@using System.Data
@using Datatables

@Scripts.Render("~/bundles/jquery")
@Scripts.Render("~/bundles/jqueryval")
@Scripts.Render("~/bundles/DataTable")

I've added the Datatable-Editor-Server.dll to my references. When I put "using DataTables;" in one of my cs files it doesn't have an error. When I try to include it in the cshtml file it gives me the following error: "The type or namespace name 'DataTable' could not be found (are you missing a using directive or an assembly reference?)." Is there anyway to use it in my cshtml file?


Viewing all articles
Browse latest Browse all 82001

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>