473,395 Members | 1,386 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

ASP.NET Chat

I am trying to create a very simple chat program using UDP through a web
page. I am having problems getting this going. All the examples I've seen
deal with remoting or application variables, or web services, etc. Does
anyone have any resources to point me to (either VB.NET or C#) that explains
how to create a simple chat on a web page?

thanks.

John
Nov 18 '05 #1
3 3386
http://cutesoft.net/Default.aspx?tabindex=1&tabid=23

"John Wright" <ri***********@hotmail.com> wrote in message
news:e%****************@TK2MSFTNGP11.phx.gbl...
I am trying to create a very simple chat program using UDP through a web
page. I am having problems getting this going. All the examples I've seen deal with remoting or application variables, or web services, etc. Does
anyone have any resources to point me to (either VB.NET or C#) that explains how to create a simple chat on a web page?

thanks.

John

Nov 18 '05 #2
a web page can not use UDP. you must supply a java applet, active/x control
to do this. if you meant for the server to be a proxy for the chat client
(talking to an internet chat), then you will need to spin up background
threads that maintain the ip connections used by UDP, and set up some
communication system between the connection managers and the aspx pages.

-- bruce (sqlwork.com)
"John Wright" <ri***********@hotmail.com> wrote in message
news:e%****************@TK2MSFTNGP11.phx.gbl...
I am trying to create a very simple chat program using UDP through a web
page. I am having problems getting this going. All the examples I've seen deal with remoting or application variables, or web services, etc. Does
anyone have any resources to point me to (either VB.NET or C#) that explains how to create a simple chat on a web page?

thanks.

John

Nov 18 '05 #3
The problem with chat and the web is that the connection is not held between
page requests. There's no way to send a message to the intended recipient
unless the client requests the page by specific action of refreshing or
submitting the form.

You can hold messages in a database or even MessageQueue and update the
client on refresh or on postback or there is another way I have used.

I created a frames page, the client sends messages from one frame and in the
other frame receives all messages intended for him. The page for the
incoming messages frame is created with a class derived from IHttpHandler
and IRequiresSessionState. I use a timer and a loop to keep the response
object from completing so the connection between the client and server
remains open and messages can be sent to the client as required. To prevent
client timeouts, I Response.Write and empty string every minute.

Another great chat starting point, and the starting point from which I
developed a full function encrypted WindowsForms client/server chat system,
is the DelegatesAndEvents example in the samples provided with the
framework.

There's also a TcpUdp chat example in the framework samples but I don't like
it as much as the DelegatesAndEvents sample.

Dale Preston
MCAD, MCSE, MCDBA

"John Wright" <ri***********@hotmail.com> wrote in message
news:e#**************@TK2MSFTNGP11.phx.gbl...
I am trying to create a very simple chat program using UDP through a web
page. I am having problems getting this going. All the examples I've seen deal with remoting or application variables, or web services, etc. Does
anyone have any resources to point me to (either VB.NET or C#) that explains how to create a simple chat on a web page?

thanks.

John

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Savas Ates | last post by:
how can i do a chat page with asp .. does anyone have example codes or url.. or with java.. please help me...
3
by: A | last post by:
Hi all! I am currently working on a project where I need to create a web-based chat application that will be used for auctions. If possible, could I get some advice on how to create chat...
5
by: Bhaiyyah | last post by:
I am repetitively failing to login with any user name for XHTML Chat. Here is some info I copied from view source: Link: http://www.shiachat.com/forum/chat.html ...
0
The1corrupted
by: The1corrupted | last post by:
Alright, I've set up a chat system that only works half way... I need suggestions on how to make it work better... I'm trying to figure out a way to make $_SESSION viewable to all players by...
1
oll3i
by: oll3i | last post by:
how do i run this example ? with openjms package com.ociweb.jms; import java.io.*; import javax.jms.*; import javax.naming.*;
1
oll3i
by: oll3i | last post by:
when i run it from bat (@start "CHAT to topic" run Chat)without durable subscriber the window for chat opens but when i added the durable subscriber to the code it stopped opening? import...
4
by: Gandalf | last post by:
I wrote a chat width AJAX. In my home wampserver apache it works just fine. The problem starts when I trying to upload the chat in to my real server. The chat prints error 403 in places which it...
3
by: John Dalberg | last post by:
I am looking for an asp.net based chat software. I have looked at some (asp.net and php based) and they consist usually of a javascript piece where the web user (visitor) initiates a chat from a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.