Skip to content

Developing a Chat Application using C# in ASP.Net

neeraj jain

Asked Dec 27, 2005, 8:50 PM EST1 answer
Share
LinkedInX
Hi,
i am building a Multi -User Chat Application using c# in ASP.Net
for the first 15 mins with 5-8 users it works fine
but after 15mins with more users andf more messages it becomes slow
i am using the ArrayList() to store the user messages, and the all messasges from the ArrayList are displayed on a webform using a RemoteScript function()
so every time the page is refreshed the RemoteScript function retriebves all the elements from the ArrayList and display them on the webpage

so can u help me, is it the right approach to do it.

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Hi

    You are using a good techniques but what i think this will degrade your performance due to large amount of data in current array. So what you need to do is that clear the array as soon as the array data are posted back to the webform

    thanks
    0