Click here to Skip to main content
15,797,984 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all
i try to make a chat room, i just have a little BIG problem,i have a textbox [or i can use list box instead] a thread a database table, an some textbox and buttons.
this thread have codes that connects to DB and get the latest messages if the number of messages are more than messages count in textbox, and add them to textbox, the problem is that textbox didnt show anything, i dont want to refresh the page , therefor i didnt use timer, some of my friends told me to use update panel , but i dont think its the correct way, and even i used it and get nothing, but when i use the timer, it works, bu i dont need to refresh the page.
so what should i do?
Updated 18-Sep-11 23:43pm

1 solution


You said you are developing chat application in your application.your thinking is fine But that is not correct way while developing chat application .It uses high bandwidth in network while transfering data .Use Jquery for retrieving last msg from database thn check that msgid to last retrived msg id if two equal ignore otherwise send data to browser.

In client side jquery appends that retrieved msg to particular msgbox.

There are so many source codes for individual chat applications using jquery

Here 'm providing some links to simple chat application in jquery.

If you use jquery no need to refresh your page
All the best
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900