All of you who love surfing the Internet must have been to Netease's virtual Community Well, the calling platform must be very popular. Through the paging platform, we can call any netizens who are surfing in the virtual community to achieve online chat.
In fact, we can use ASP to completely implement the same functions as the paging platform in the Netease virtual community. How can this problem be solved? Don't believe it? Follow me to use ASP to implement network pager step by step.
Active Server Pages (ASP) is a server-side scripting environment that allows you to create and run dynamic and interactive web server applications.Program. ASP allows you to combine HTML pages, script commands, and ActiveX components to create interactive web pages and powerful web-based applications. ASP applications can be easily developed and modified.
Next, we started to write our network pager.
First, there are two ways to implement the network call function:
1. storage and processing of paging information using databases
The advantage of this method is that the storage Information processing is very convenient, but its disadvantage is obvious, that is, it increases the burden on the server, because frequent database storage will greatly increase the number of I/O accesses, resulting in slow connection speed of the website.
2. directly use the application to save the call Information
The advantage of this method is that it is faster than using a database to store the paging information. The disadvantage is that it is complicated to process information, but it is worth it, the first thing we need to ensure is the performance of the entire website.
Based on the above factors, we will use the second method to compile the network pager. For the first method, I will briefly introduce it at the end.
Our network PAGER requires three pages, namely the "Paging platform" page, the "display paging information" page, and the "monitoring pager" page.
The "Paging platform" Page (bbssendbegic. asp) is a page used to send information to other online users. Naturally, it is like a messaging platform in our life.
The "display call information" Page (bbssendinfo. ASP) when someone calls you, the page showing the call content is displayed, just like your own bp, but our network bpserver is more powerful, he can immediately reply to the information someone else gave you, or reply later, or simply clear this information.
"Monitoring pager" Page (bbsautosearch. ASP) is a page that monitors whether someone calls you at any time. Like a tired automatic robot, it keeps monitoring all the call information and filters out the information that only belongs to you.
Due to space limitations, welcome to download the source program and more detailed description (href = "http://download1.ccidnet.com/source_code/vb/netpager.zip), file size: 39 K