473,507 Members | 2,368 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
Nov 18 '05 #1
2 1258
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

Nov 18 '05 #2
Thanks for all your help. Can you guide me to website or something for more
info?

Thanks for your time!

DevilZAngel

"Chris Jackson" <chrisjATmvpsDOTorgNOSPAM> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
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


Nov 18 '05 #3

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

Similar topics

1
1416
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
1002
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
1198
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...
10
1816
by: Don Munroe | last post by:
This one has me stumped. I have three web applications running on two different servers. The first that works fine is hosted by a .Net hosting company. Everyone that uses it has no problems...
1
1466
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
791
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
4804
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
2970
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
1581
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
7319
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
7376
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
7031
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...
1
5042
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
4702
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...
0
3191
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
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1542
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 ...
1
760
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.