3200 2
Calling ASP.NET WEB API with Angular 4 HttpClient is not working

My angular 4 doesn't hit my API in my controller

39737134-7dda-4fa8-aeb8-ee289f6c6fd8-min.png

ApiService

...
Type
Question
3189 2
How to append jQuery bootstrap calender on dynamically created element in ASP.NET MVC?

Here, I am appending Model data to <td> from the model List and trying to do inplace (inline) editing and I want to validate the form using for loop.

Now, I would like to add/append the calender to start date and end date (dynamic textbox elements)using bootstrap calendar. How can I do it?

here is my Current C# razor view code:

<tbody>
@if (List.Count > 0)
{
for (int i = 0; i < List.Count; i++)
{
<tr id="Tr_@i.ToString()">
<td>
<input type="hidden" value="@List[i].ID" id="hdnId_@i.ToString()" />
<input type="text" class="form-control" id="txtName_@i.ToString()" value="@List[i].Name" />
</td>

<td class="hideCol2 hideHideCol_2">
<input type="text" class="form-control" id="txtDescription_@i.ToString()" value="@List[i].Description" />
</td>

<td class="hideCol3 hideHideCol_3">
<input type="text" class="form-control" id="txtTopCount@i.ToString()" value="@List[i].TopCount" />
</td>

<td class="hideCol4 hideHideCol_4">
<div class="input-group date" id="editstartDate">
<input type="text" class="form-control" id="txtStart_Date_@i.ToString()" value="@List[i].Start_Date.ToString("dd/MM/yyyy")" />
<span class="input-group-addon">
<span class="glyphicon glyphicon-calendar"></span>
</span>
</div>
</td>

<td class="hideCol5 hideHideCol_5">
<div class="input-group date editendDate" data-provide="datepicker">
<input type="text" class="form-control" id="txtEnd_Date_@i.ToString()" value="@List[i].End_Date.ToString("dd/MM/yyyy")" />
<span class="input-group-addon">
<i class="glyphicon glyphicon-th"></i>

</span>
</div>
</td>


</tr>
}
}
else
{
<tr></tr>
}
</tbody>

Here is the screenshot of my view

...

Type
Question
3109 0
Zip-UnZip File in C# (.NET 4.5+ and .NET Core example)
In this article, I have provided working example of how we can zip or unzip using C# with examples in .NET 4.5+ Framework and .NET Core.
Type
Article
3089 1
Keep Pop up Modal Opened after saving data in Ajax.BeginForm

Hi, I wanted to stay open pop-up modal (this modal is partial view) after successfully inserting data in database, I am using Ajax.BeginForm to save data with PartialView

I want to stay it open so I can insert new data without clicking the create button again and i dont want to redirect it to Index View. Please see the image below of my code, Thanks...

 

...

Type
Question
3058 0
jQuery Datatable Server side processing in ASP.NET Core
In this article, I have mentioned step by step procedure to use jQuery datatable with server side processing in ASP.NET core, with pagination, searching and sorting.
Type
Article

3046 3
How to get Facebook page notification new comments/posts via Graph API in ASP.NET

Hi, I have to add a method to get the posts and comments from graph api : But as we know every minute or every 5 minute we have a new posts and comments. And when I move to the view that contains the posts and comments I can't recieve the new posts and comments like a notifications . like facebook when any one post or comment into a page facebook we get a notification and that notification when click on it, the new comments shown or posts.

Please how can I do that ? thanks.

...
Type
Question
2972 1
What is the difference between ASP.NET MVC and ASP.NET Core?

Hello, I would like to know what's the difference between asp.net core and asp.net mvc, which one should I when?

I am currently working on MVC, but would like to know benefits of .NET Core.

...
Type
Question
2966 0
File upload using Ajax in ASP.NET Core
In this article, I have mentioned how we can upload file using AJAX in ASP.NET Core without form submit.
Type
Article
2966 3
chart.js bind with list of object from controller

Hi, I'm trying to use list of object returned by Json to bind chart.js but I don't know how can I get the first element of object and second element of object and show it in chart.js.

My code is as below :

Class

...
Type
Question
2961 2
How to save weekend values in Database?

I am saving a table company information where I want to save the weekends for that particular company. Thing is when I was doing a payroll management system, I could bring out the total working days in a month. But that was not dynamic. Here is the code,

...
Type
Question

Page 26 of 31