Discussion Board a Chat Page with in 5 minutes

 

Hello friends,

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

<frameset rows=”60%,40%”>

<frame src=”Messages.aspx”>

</frame>

<frame src=”SendMessage.aspx”>

</frame>

</frameset>

</html>

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

 

http://indiandotnetdiscussionboard.tk/Happy Programming

 

Advertisements

One thought on “Discussion Board a Chat Page with in 5 minutes

  1. fantastic submit, very informative. I wonder why the other specialists of
    this sector don’t understand this. You should proceed your writing.
    I’m sure, you have a huge readers’ base already!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s