Hi,
I start by saying this is the first project I have ever published and apologize in advance if I give you too much or too little information.
So, I published this mvc project to a business server. It works but the data in the datatable is not showing. Although, when I just debug in visual studio there is data.
This project has 2 tabs:
The first tab is to show the datatable in question which uses entity framework;
The second tab also has a datatable(a yadcf) which shows data that is accessed via ado.Net.
Data in the first tab does not show, while it does in the second tab.
The datatable on the first tab references to this link:
While for the second tab I imported the yadcf datatable. Below is how I reference to it:
Also, when I do f12 under the "Elements" I can see the references to the datatables(see attached photo). Plus it looks like the datatable and its functionalities(search box, paging, column names) show up but without any data in it.
In case you want to see it, this is the code of the index page which includes the datatable:
- @{
- ViewBag.Title = "Index";
- }
- class
- class
="active">"tab" href="#firstTab">View All- "tab"
href="#secondTab">Add New- "tab"
href="#thirdTab">Knowledge- "tab"
href="#fourthTab">IT Tasks- class="tab-content">"firstTab" class="tab-pane fade in active">@Html.Action("ViewAll")"secondTab" class="tab-pane fade in">@Html.Action("AddOrEdit")"thirdTab" class="tab-pane fade in">@Html.Action("ViewAllKnowledge")"fourthTab" class="tab-pane fade in">@Html.Action("ViewAllTasks")
- @*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*@
- }
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.
Nicola SantagataPosted Jan 21, 2020, 10:54 PM