Today I will describe here how make your own discussion board where your friends can chat. Its fare simple job. For this you need only three things basic.
1) meta tag
2) Application variable
3) Frameset tag
I know you people are aware of application variable. Application variable is the variable which is common to all user on site.
So what I did I keep all the message in application variable and show it on the message screen.
And when ever a user send a message I keep that message in application variable.
I refresh the message page in regular interval so that message screen will update with latest message.
The refresh technique is fairly simple its just use of meta tag.
<meta http-equiv=”refresh” content=”5″ />
The above tag refresh my page in each 5 second.
Main page is has following tags
Where Message.aspx is used to collect all message which are in application variable.
And sendMessage.aspx is used to send or we can say store all message in Application variable.
One important thing to remember here is to lockout and unlock application when ever you want to save message in application variable.
The reason behind is when a use update application variable then other user can not change that variable.
For more information you can download & test this chat program at