views:

57

answers:

1

Hi there,

I was looking for a chat program, and I found it here in Code Project,

Build a Web based Chat using ASP.NET Ajax (http://www.codeproject.com/KB/ajax/aspnetchat.aspx)

The code is working perfectly,except 2 issues,can anybody tell me how can I overcome these issues?

1-how can I get for example the last 2 hours chat from the database, when a new user enters to the chat room? I tried the getlastmessage stored procedure, but because of the refresh, it keeps showing the messages over and over. any solutions?

2-In firefox after I hit the enter on keyboard I see two messages instead of one. sometimes it happens in IE too.

Thanks in advance

+1  A: 

try the samples inside here

BigbangO