473,387 Members | 1,664 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,387 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 1404
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
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...
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,...

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.