3635 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
3590 2
How to add the SignalR client library in ASP.NET Core 2?

Hi, I'm using SignalR with .net core2 in Visual studio 2017 to send message to all users. But I don't know how can I add the SignalR client library.

My current javascript code is :

<script src="Scripts/jquery-1.6.4.min.js"
type="text/javascript"></script>
<script src="Scripts/jquery.signalR-0.5.2.min.js"
type="text/javascript"></script>
<script src="signalr/hubs" type="text/javascript"></script>
<script type="text/javascript">

var myHubProxy = $.connection.hub.CreateHubProxy("MyHub");
myHubProxy.on('ClientsListener', function (msg) {
// alert to test
alert(' message from server');
//$("#messageDisplay").text(msg);
})
$.connection.hub.start().done(function () {
myHubProxy.Invoke('MyServiceFunction');
})

</script>

In Which my project not contains those scripts :

<script src="Scripts/jquery-1.6.4.min.js"type="text/javascript"></script>
<script src="Scripts/jquery.signalR-0.5.2.min.js"type="text/javascript"></script>
<script src="signalr/hubs" type="text/javascript"></script>

Please how can add the SignalR client library. I was try this : But I remarked  no file clled Client_side library to add it .

...

Type
Question
3571 0
Creating Cascading Dropdown list in ASP.NET Core MVC
In this article, I have mentioned how to create Cascading Dropdown list in ASP.NET Core MVC using EF Core and database tables.
Type
Article
3503 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
3433 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

3420 0
Performing CRUD Operation in ASP.NET MVC Using Entity Framework
This article helps you to perform CRUD (Create, read, Update , Delete) operation in ASP.NET MVC using Entity Framework as connectivity to database.
Type
Article
3405 2
How to solve the Index out of range exception?

I am getting out of range exception for this code-

...
Type
Question
3376 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
3350 2
Find Expire Time for an access token (page_access_token) when using facebook Graph API in ASP.NET?

Is there any way to use the facebook graph api to find out when a page access token will expire?

There is now an API version of the debugger tool. See https://developers.facebook.com/docs/authentication/access-token-debug/. 

But I can't figure out the expire_date of my page_access_token. Please how can I find when token will expire in ASP.NET or Javascript.

In below picture I was figure out just the page_access_token and the id.

...

Type
Question
3347 1
Need articles that covers complete tutorials (with syntax) for LINQ or ENTITY FRAMEWORK? Like MozillaDeveloper.

Is there an article that covers all syntaxes for LINQ or ENTITY FRAMEWORK

I want to learn EF, however when i am looking for good resources it always limited. 

And also should I learn LINQ before knowing EF?

The only thing that I've found great was LINQ 101.

Thanks and advance.

...
Type
Question

Page 27 of 31