Thursday, November 29, 2007

ASP.Net AJAX Chat Client

Since my work blocks IM programs, including web-based ones like meebo (which I happen to love), I thought I'd write my own light-weight, web-based chat client that I could deploy to my personal web site. It's not fancy by any stretch of the imagination, but it does allow basic communication, and you should be able to use it as a working model. It's created in ASP.Net 2.0, using AJAX for periodic message polling. It's a quick and dirty implementation, nothing elegant, and I'm going to modify it as time goes on--adding a proper authentication method is going to be the first change. I thought I'd post the code files here, in case someone is looking for a similar application.

You should be able to drop the files on your server, create the IIS application and run it as-is. Throughout the code, there are some likely things you'll want to change (search the files for TODO). Again, this is a first-stab just to get a working model. I'll likely change the message posting to use AJAX as well, remove the use of IFRAMEs, change the message storage to something more persistent than application variables (actual persisted chat logs), add a few user-based customization features, and as already stated, use a standard authentication model. I hope it's useful to someone.

Download the Code

0 comments:

Post a Comment