473,324 Members | 1,856 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,324 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 3379
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: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.