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 .
...
Hello, I have just started using Windows Server 2016 on Amazon EC2, but I am not able to check which IIS version I am using, as I would like to have Http/2 support which is starting from IIS 10 as far as I know.
So, let me know how I can check IIS version on windows server?
...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.
...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,
...I am getting out of range exception for this code-
...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
...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.
...Hello, I have started using Visual Studio 2022 and Was trying to create a new ASP.NET Core (.NET 6) project, but when I tried to add new JSON settings in
Startup.cs
, I wasn't able to found this file? So How can i configure JSON settings or database context details in .NET 6 without startup.cs