skip to Main Content

DataTables error loading ajax source data – Asp.net

I am getting the following error when trying to load DataTables ajax sourced data: DataTables warning: table id=report-table - Ajax error. For more information about this error, please see http://datatables.net/tn/7 Below is my DataTables html: <table id="report-table" class="display nowrap" style="width:100%">…

VIEW QUESTION

Adding SqlCommand parameters in C# – Asp.net

Please help me to add paramaters in this queryToDB SqlCommand this is the code cons = new SqlConnection(ConfigurationManager.ConnectionStrings["DefaultConnection"].ConnectionString); cons.Open(); SqlCommand queryToDB = new SqlCommand("INSERT INTO [dbo].[FileUploadDBs] values (@Name, @Path, @Blasted, @CreatedBy, @CreatedDate)", cons); //param.ParameterName "@Name"; //param.Value = prefix + extension;…

VIEW QUESTION

on click event and pass value to function – Asp.net

I have an on click event that calls a function but it does not work: @foreach (var item in Model.OrderDetails) { <tr class="text-center" id="@item.DetailId"> <td class="product-remove" onclick="DeleteOrderDetail(@item.DetailId)"><a><span class="ion-ios-close"></span></a></td> </tr> } @section Scripts { <script> function DeleteOrderDetail(orderDetailId) { debugger; $.get("/Account/RemoveCart?orderDetailId=" +…

VIEW QUESTION
Back To Top
Search