Real-time Web communication and real-time web communication

Source: Internet
Author: User

Real-time Web communication and real-time web communication

Learning SignalR starts with the http://www.cnblogs.com/insus/p/5619422.html of real-time data display-SignalR instance demo.

This article only displays the database data to the client in real time, and modifies the database...

Today, Insus. NET simulates a small feature that submits information in real time and updates the client display in real time.


Of course, you need to practice the previous article before practicing this article, because many programs and codes have already been written.


OK. Now we create a Hub:


The method names in the red line above are all the methods used by the client jQuery.


This month is July, and the Controller of ASP. net mvc learned also uses July to name it:

 

Next, create a view:

 

 

Js Code:

 
Real-time Demonstration:

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.