How to send notifications on the Web

Source: Internet
Author: User

There is a difference between Web reminders and Windows reminders. Because of the special nature of HTTP connections, they will be automatically disabled after the request is complete.
Step 1: Build a persistent connection. it is used to send messages to the client. there are multiple methods. in Asp.net, we can implement resetautoevnet using this object to prevent the thread from continuing to run. set a message when it comes. which of the following information will be sent to the client, causing some client events. implemented the reminder function.
Step 2: how to create a suitable dialog box to remind users? We used Popup. In the past, we thought it was a layer when people came out of the "you have new messages.
Step 3: We will use a thread to maintain the reseautoevent list and memo reminder message, so that it can send messages to the client at the time of arrival. Popup will pop up.

The alternative method of Step 1: You can write an httplistner by yourself. The second method is to get messages from the server through constant refreshing.

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.