473,749 Members | 2,597 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

chat within asp.net?

OJO
Hello microsoft.publi c.dotnet.framew ork.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 2426
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.Te xt = "This is my LinkButton"
Page.Controls.A dd(myLinkButton )

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
"OJO" <o_***@poczta.o net.pl> wrote in message
news:be******** **@nemesis.news .tpi.pl...
Hello microsoft.publi c.dotnet.framew ork.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.o net.pl> wrote in message
news:be******** **@nemesis.news .tpi.pl...
Hello microsoft.publi c.dotnet.framew ork.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.ne t> napisał w wiadomo¶ci
news:On******** ******@TK2MSFTN GP10.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.Te xt = "This is my LinkButton"
Page.Controls.A dd(myLinkButton )


Yes, I tried it milion times today. Control is added to Page.Controls, but
doesn't appear on the WebForm (Control.Visibl e=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.o net.pl> wrote in message
news:be******** **@nemesis.news .tpi.pl...
Użytkownik "Steve C. Orr, MCSD" <St***@Orr.ne t> napisał w wiadomo¶ci
news:On******** ******@TK2MSFTN GP10.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.Te xt = "This is my LinkButton"
Page.Controls.A dd(myLinkButton )
Yes, I tried it milion times today. Control is added to Page.Controls, but
doesn't appear on the WebForm (Control.Visibl e=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
3434
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 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
3
2596
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 applications and which part of the .NET framework should I delve into? I would really appreciate the help! Cheers,
5
3957
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 javascript:Chat=void(window.open('http://www.shiachat.com/forum/chat.html','Chat','resizable=1,status=1,width=800,height=620,top=0,left=0')) <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html...
0
1813
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 making it equal $cchat, but I don't think it will work... I don't like to use the database because then the chat would become really tangled. It's only there for admin access. I want to keep the chat session specific while having what is posted...
1
5441
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
1855
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 java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.naming.*; import javax.swing.BorderFactory; import javax.swing.BoxLayout; import javax.swing.JButton; import javax.swing.JFrame;
4
2226
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 should print the http request. Like I don't have permissions in these pages. there two things I should mark 1.I did let permissions to write and execute (chmod) my chat files. 2. My home server php version is 5.3 and my distant server php...
2
1610
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
2185
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 web page, an operator client which is usually a desktop app or browser based and the server part which serves as a controller between the operator and visitor, sending and receiving the chat text between them. What I have noticed is that the...
0
8997
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8833
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9389
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9256
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6801
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6079
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4709
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4881
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3320
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.