Does the editor work for cshtml files?

Does the editor work for cshtml files?

cmscott2cmscott2 Posts: 1Questions: 1Answers: 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?

Answers

  • allanallan Posts: 63,205Questions: 1Answers: 10,415 Site admin

    Is it just:

    @using Datatables

    Should be:

    @using DataTables
    

    (capital T for Tables)?

    Allan

This discussion has been closed.