Skip to content
Loading
MVC: Datatable does not contain any data after publishing  
  •   
  • @*jQuery Datatable CSS*@  
  • "https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css" rel="stylesheet" type="text/css" />  
  • "stylesheet" href="https://code.jquery.com/ui/1.12.0/themes/smoothness/jquery-ui.css">  
  • "stylesheet" href="https://cdn.datatables.net/responsive/2.2.3/css/responsive.dataTables.min.css">  
  • "stylesheet" href="https://cdn.datatables.net/colreorder/1.5.2/css/colReorder.dataTables.min.css">  
  • @section scripts  
  • {  
  • @Scripts.Render("~/bundles/jqueryval")  
  • @*jQuery Datatable JS*@  
  • "text/javascript" charset="utf8" src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.js">  
  • "https://code.jquery.com/ui/1.12.0/jquery-ui.js">  
  • "https://cdn.datatables.net/responsive/2.2.3/js/dataTables.responsive.min.js">  
  • "https://cdn.datatables.net/colreorder/1.5.2/js/dataTables.colReorder.min.js">  
  •   
  • }  
  • FYI, when I published I used the below:
     
    UNDER CONNECTION:
    Publish method: Web Deploy
    Server: (Business Server Name)
    Site name: HelpDeskSupport
    Username: myUsername
    Password: myPassoword
     
    UNDER SETTINGS:
    Under "DBModel" as the datasource I added the SQL Server name with its username and password.
    I checked the "Use this connection string at runtime..."
     
    Could you please help me figure out what I have done wrong? Thank you. 

    1 Reply

    Know the answer? Post it — somebody with the same question will find it here.