Today, I will teach you how to build a professional chat room system under the .Net platform.
This tutorial requires a certain foundation of c#.net language or vb.net language
First, let me give you a brief introduction to Asp.Net.
The .Net platform has been Microsoft's flagship product in recent years, and the c# language is the latest programming language launched by .Net. It takes the essence of java and c++ and eliminates their weaknesses!
Any computer with the .Net 2.0 framework installed can run .Net programs, which can be said to be cross-platform!
Because today we are going to use Asp.Net to build a chat room system
First of all, the chat room mainly uses two built-in objects of Asp.Net, Session and Application. These objects are present in asp, php or jsp.
First, let me explain that Session Session is also called session. Its scope is between browsers. The life cycle is the period between opening and closing the browser. Any object can be saved during this period.
Come on, let me show you how to use Session. You can watch my demonstration. As long as you don't close the browser, Session will always exist. You can see that I continue to use session on other pages. In fact, the session has been saved. As long as I click this button, the value of the session will be output on the page.
The session probably looks like this. This tutorial requires asp.net basics, otherwise it will be difficult to understand!
Expand