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

Help: self refreshing textbox in asp.net (C# code behind)

Hi all

I am writing a simple chat application in asp.net. Problem is that, when
other user sends a message, I want my testbox (which shows the messages) to
refresh automatically, without using setInterval or anything like that. I
saw a webpage at microsoft's website somewhere using the same thing, but
couldn't find it again. This is the only thing left in the app. Right now i
am using setInterval. The website had scrolling textbox too. I would love
that ;)

I am open to ideas!

Thanks for your time!

DevilZAngel
Jul 21 '05 #1
1 1408
Well, you have a couple of choices. If you want to implement entirely in
DHTML, then you are going to have to do refreshes. However, you can get a
bit more sophisticated with this - you can (and, in fact, may already be)
have your interval update pinging a web service for updates to the chat,
rather than refreshing the entire page. Just grab the XML of any fresh
conversations, and then pump them into the innerHtml of a div (which you can
set to scroll). If you want to have new conversations come to you, then you
are going to have to implement a listener that the server can connect to,
which would entail ActiveX, hosted .Net controls, Java, etc.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"DevilZAngel" <do***@mail.me> wrote in message
news:GR*********************@news20.bellglobal.com ...
Hi all

I am writing a simple chat application in asp.net. Problem is that, when
other user sends a message, I want my testbox (which shows the messages)
to
refresh automatically, without using setInterval or anything like that. I
saw a webpage at microsoft's website somewhere using the same thing, but
couldn't find it again. This is the only thing left in the app. Right now
i
am using setInterval. The website had scrolling textbox too. I would love
that ;)

I am open to ideas!

Thanks for your time!

DevilZAngel

Jul 21 '05 #2

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

Similar topics

2
by: DevilZAngel | last post by:
Hi all I am writing a simple chat application in asp.net. Problem is that, when other user sends a message, I want my testbox (which shows the messages) to refresh automatically, without using...
2
by: jlucas | last post by:
Hello, I am new to .Net and I need some help getting access to the controls in my aspx code. It seems my cs class can not get a good reference to the controls declared in my aspx file. Here...
3
by: chris | last post by:
Suggested that I move my question to this post, HELP I'm struggling with using the HttpCookie object on a code behind. Used in the page works great I'm getting a: Type 'HttpCookie' is not define...
1
by: Asha | last post by:
greetings, can someone show me how to read a client side value from code behind withouth having to resfresh the page? here is the code i've implemented.... ...
0
by: Tmuld | last post by:
Hello, I have not used Visual Basic .NET in two years - in fact completely out of development. Now I am back in! Basically I have to make a web page with a textbox and button. On the click...
2
by: rn5a | last post by:
Assume that a user control (MyUC.ascx) encapsulates 2 TextBoxes with the IDs 'txt1' & 'txt2' respectively. To use this user control in an ASPX page, the following Register directive will be...
2
by: Doogie | last post by:
Hi, I'm trying to set up a refresh of some of the data on a page and am using this: <meta http-equiv="refresh" content="120"> This works great with one exception. I only want to refresh...
3
by: Mohd Baseerul Mubeen | last post by:
Hey! I am a beginner Can anybody help me with the code behind for working with responsexml
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
1
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...
0
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.