Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 1st, 2003, 06:16 AM
uxi uxi is offline
Registered User
 
Join Date: Sep 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chat Application

Hi,
I am creating a chat application using ASP.Net and C#.

The chat room has frames...and one frame is chat box ---which shows all the messages.. To keep chat box keep collecting the messages and showing it... a meta tag of refresh (may be 2 secs. or so ) is required. This mechanism works fine.

But i need to know and implement of some other mechanism by which the chat box can keep listening and collecting, showing the messages. As the refresh method looks bad refreshing the frame again an again showing that blue progress bar in the browser...moreover i dont find it to be efficient in terms of performance.

I am using .Net remoting concept... but help can also be provided for web service or whatever you find suitable.

If any details please contact -

[email protected]

Thanks in Advance .
Regards,

Uxi
 
Old October 1st, 2003, 08:39 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Well, here's a possible idea...
You add a third frame that is not visible. This frame has the page that refreshes regularly and it updates the textarea in your messages frame which remains as a static (i.e. non-refreshing) page. So you don't see the refresh on the messages page, but it remains updated by this hidden frame. I don't think that this will solve your problem with the blue progress bar in the browser however. There's no way to avoid this if you are just building a simple application in asp.net (i.e. html). If you wanted more of an application feel you would probably need to write some kind of applet that runs in the browser and does it's own communications so the page that the applet sits on only loads once.

Alternatively, you could build this chat application in flash and let flash talk to a web service for message posting and retrieval. That would be a neat solution too.

Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
chat application krishna_krrish .NET Framework 1.x 0 August 14th, 2006 12:40 PM
want help(chat application) amitjava J2EE 3 September 27th, 2004 03:20 AM
How can i do Chat Application? ccc_storage Classic ASP Professional 2 September 13th, 2004 09:31 AM
Chat Application sachindhillan Classic ASP Basics 2 August 10th, 2004 12:32 AM
Chat Application uxi ASP.NET 1.0 and 1.1 Basics 0 October 1st, 2003 06:27 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.