473,326 Members | 1,972 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,326 software developers and data experts.

chat within asp.net?

OJO
Hello microsoft.public.dotnet.framework.aspnet!

Is this possible to write very simple chat within asp.net (asking google I
got only commercial components' websites)?

BTW:
How can I dynamically add LinkButton to my WebForm?

TIA

--
OJO
"You cannot say, that everybody's happy,
But you can say, that everybody is now
Safe from each other."
King Diamond

Nov 17 '05 #1
4 2407
Sure, I can envision a chat page where multiple clients keep posting back
and the server keeps track of the conversations.
A more efficient solution might be to use a windows forms app and call a web
service to manage the conversations.

Dim myLinkButton As New LinkButton()
myLinkButton.Text = "This is my LinkButton"
Page.Controls.Add(myLinkButton)

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
"OJO" <o_***@poczta.onet.pl> wrote in message
news:be**********@nemesis.news.tpi.pl...
Hello microsoft.public.dotnet.framework.aspnet!

Is this possible to write very simple chat within asp.net (asking google I
got only commercial components' websites)?

BTW:
How can I dynamically add LinkButton to my WebForm?

TIA

--
OJO
"You cannot say, that everybody's happy,
But you can say, that everybody is now
Safe from each other."
King Diamond

Nov 17 '05 #2
You could write a html chat app that refreshes on a timer. Store the
messages in the Application object.

Thanks.
Gavin Joyce

--
__________________________________________________ _________
nTierGen.NET Code Generator - http://www.nTierGen.NET/

Stored Procedures (Get, GetPaged, Insert, Update, Delete)
Data Access Layer - C#
Business Rules Layer - C# & VB.NET
Strongly-Typed DataSets - C#
Web Services - C#
__________________________________________________ _________
"OJO" <o_***@poczta.onet.pl> wrote in message
news:be**********@nemesis.news.tpi.pl...
Hello microsoft.public.dotnet.framework.aspnet!

Is this possible to write very simple chat within asp.net (asking google I
got only commercial components' websites)?

BTW:
How can I dynamically add LinkButton to my WebForm?

TIA

--
OJO
"You cannot say, that everybody's happy,
But you can say, that everybody is now
Safe from each other."
King Diamond

Nov 17 '05 #3
OJO
Użytkownik "Steve C. Orr, MCSD" <St***@Orr.net> napisał w wiadomo¶ci
news:On**************@TK2MSFTNGP10.phx.gbl...
Sure, I can envision a chat page where multiple clients keep posting back
and the server keeps track of the conversations.
:D
A more efficient solution might be to use a windows forms app and call a
web service to manage the conversations.
Ok, "chat" was only unfortunate pretext. Actually I need another feature. I
have instaled windows service on my machine. I control that service over tcp
using System.Runtime.Remoting. Now what I need. I need my page to show some
informations, got using technique described above. So the page should be
constantly refreshed. I could use some client-side script, but want to
refresh only if data is changed. That's the problem. Anyone could help me?
Dim myLinkButton As New LinkButton()
myLinkButton.Text = "This is my LinkButton"
Page.Controls.Add(myLinkButton)


Yes, I tried it milion times today. Control is added to Page.Controls, but
doesn't appear on the WebForm (Control.Visible=True doesn't make any trick)
:(

--
OJO
"You cannot say, that everybody's happy,
But you can say, that everybody is now
Safe from each other."
King Diamond

Nov 17 '05 #4
Two options:
1) Use Smartnavigation. IE will appear to refresh only the parts of the
page that have changed.
Here's more information on that:
http://msdn.microsoft.com/library/de...ationtopic.asp
http://msdn.microsoft.com/library/de.../cpconpage.asp

2) Use web services. Use client side code to manually call back to your
server and then update the necessary parts of the UI yourself via DHTML and
javascript. For this you'll probably need to use the web service behavior.
Here's more information on that:
http://msdn.microsoft.com/library/de...e/overview.asp

The linkbutton add code should work well from within the Page Init and Page
Load events. If you are trying to add it from other places in the event
model then things get a bit more dicey.

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
"OJO" <o_***@poczta.onet.pl> wrote in message
news:be**********@nemesis.news.tpi.pl...
Użytkownik "Steve C. Orr, MCSD" <St***@Orr.net> napisał w wiadomo¶ci
news:On**************@TK2MSFTNGP10.phx.gbl...
Sure, I can envision a chat page where multiple clients keep posting back and the server keeps track of the conversations.
:D
A more efficient solution might be to use a windows forms app and call a
web service to manage the conversations.


Ok, "chat" was only unfortunate pretext. Actually I need another feature.

I have instaled windows service on my machine. I control that service over tcp using System.Runtime.Remoting. Now what I need. I need my page to show some informations, got using technique described above. So the page should be
constantly refreshed. I could use some client-side script, but want to
refresh only if data is changed. That's the problem. Anyone could help me?
Dim myLinkButton As New LinkButton()
myLinkButton.Text = "This is my LinkButton"
Page.Controls.Add(myLinkButton)
Yes, I tried it milion times today. Control is added to Page.Controls, but
doesn't appear on the WebForm (Control.Visible=True doesn't make any

trick) :(

--
OJO
"You cannot say, that everybody's happy,
But you can say, that everybody is now
Safe from each other."
King Diamond

Nov 17 '05 #5

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

Similar topics

3
by: John Wright | last post by:
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...
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...
2
by: amol24 | last post by:
Hi everyone, i want to do a simple Chat Application within LAN using .NET .... can anyone help ???? plz reply if any hints ....
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
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: 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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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

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.