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

Client Chatting th a server.

I am trying to create a chat application in the browser.
I need to find a way for the client to call back every 15 seconds.
I tried <meta id="meta" http-equiv="refresh" content="15" />
But I am not getting any viewstate with the above trick.
Does anyone have any good ideas?
--
Arne Garvander
Certified Geek
Professional Data Dude
Aug 29 '07 #1
4 1019
On Aug 29, 11:02 pm, Arne <A...@discussions.microsoft.comwrote:
I am trying to create a chat application in the browser.
I need to find a way for the client to call back every 15 seconds.
I tried <meta id="meta" http-equiv="refresh" content="15" />
But I am not getting any viewstate with the above trick.
Does anyone have any good ideas?
Hi Arne,

When you refresh a page, you are calling the page via GET, not a POST.
This is the reason that you get no viewstate. To do it you have to
change meta refresh to a JavaScript that would submit the form every
15 seconds.

Where do you need to have the viewstate? I think in a chat you need to
get new messages only, so you don't need to post anything every 15
seconds.

Hope this helps

Aug 29 '07 #2
The JavaScript setTimeout method is commonly used for such matters.

Here's more info:
http://www.w3schools.com/js/js_timing.asp
http://SteveOrr.net/articles/WebChat.aspx

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net

"Arne" <Ar**@discussions.microsoft.comwrote in message
news:28**********************************@microsof t.com...
>I am trying to create a chat application in the browser.
I need to find a way for the client to call back every 15 seconds.
I tried <meta id="meta" http-equiv="refresh" content="15" />
But I am not getting any viewstate with the above trick.
Does anyone have any good ideas?
--
Arne Garvander
Certified Geek
Professional Data Dude
Aug 30 '07 #3
Steve,
The webchat example is just wonderful. I guess I should show my appreciation
by buying a copy of your book.
Now I have another requirement.
The clients should not talk to each other but to a customer service rep. I
was thinking the rep should have a winform. The webclient should keep in
contact with the winform with WCF.
Any more good ideas?

--
Arne Garvander
Certified Geek
Professional Data Dude
"Steve C. Orr [MCSD, MVP, CSM, ASP Inside" wrote:
The JavaScript setTimeout method is commonly used for such matters.

Here's more info:
http://www.w3schools.com/js/js_timing.asp
http://SteveOrr.net/articles/WebChat.aspx

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net

"Arne" <Ar**@discussions.microsoft.comwrote in message
news:28**********************************@microsof t.com...
I am trying to create a chat application in the browser.
I need to find a way for the client to call back every 15 seconds.
I tried <meta id="meta" http-equiv="refresh" content="15" />
But I am not getting any viewstate with the above trick.
Does anyone have any good ideas?
--
Arne Garvander
Certified Geek
Professional Data Dude
Aug 30 '07 #4
Webchat could be modified to do such a thing.
Since it uses AJAX calls back to a web service, a winform front end should
be able to call the same web service theoretically. Then you can have two
front ends.

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
"Arne" <Ar**@discussions.microsoft.comwrote in message
news:2B**********************************@microsof t.com...
Steve,
The webchat example is just wonderful. I guess I should show my
appreciation
by buying a copy of your book.
Now I have another requirement.
The clients should not talk to each other but to a customer service rep. I
was thinking the rep should have a winform. The webclient should keep in
contact with the winform with WCF.
Any more good ideas?

--
Arne Garvander
Certified Geek
Professional Data Dude
"Steve C. Orr [MCSD, MVP, CSM, ASP Inside" wrote:
>The JavaScript setTimeout method is commonly used for such matters.

Here's more info:
http://www.w3schools.com/js/js_timing.asp
http://SteveOrr.net/articles/WebChat.aspx

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net

"Arne" <Ar**@discussions.microsoft.comwrote in message
news:28**********************************@microso ft.com...
>I am trying to create a chat application in the browser.
I need to find a way for the client to call back every 15 seconds.
I tried <meta id="meta" http-equiv="refresh" content="15" />
But I am not getting any viewstate with the above trick.
Does anyone have any good ideas?
--
Arne Garvander
Certified Geek
Professional Data Dude
Aug 31 '07 #5

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

Similar topics

3
by: Sameer | last post by:
Hello, I am new to XML and I want to know how can I improve my Chatting software written in Java using XML? In chatting software there is a lot of data transfer along with formatting infomation....
14
by: Britney | last post by:
hi guys, how hard is it to develop a small chatting program? is there an example out there? I don't want to have a web browser based application, but window application. what libraries do I need...
2
by: ACaunter | last post by:
Hi all, I was wondering if there was a way to view the clients screen from the server. This would be quite handy for technical support help on the asp.net application. I know XP has it's on way...
2
by: Reny | last post by:
Can any one guide me on creating a chatting app with asp.net /vb.net
3
by: narasimha26 | last post by:
How to do online chatting in asp.net1.1 and sqlserver2000
1
by: Pradeep Chhabria | last post by:
I have made a UDP multi client chat server.Now i wanna see that how a bit error or any packet loss can affect the chatting.....So what should i do?What methods should i use?
1
djchynna
by: djchynna | last post by:
please can somebody help me?? i want to know a simple codes of a private chatting.. i'll used it as my guide for my project.. chatting!!!
1
by: Chetana | last post by:
Hello , I have implemented one social networking site using asp.net and I want to integrate the chatting in site. So if u have any idea or any reference link about that please let us know. ...
1
by: unique80 | last post by:
Hello friends, how to Video Chatting in asp.net and how to insert/save video(wmv/avi/flv) file in sql server using asp.net. .plz give the source/application ...........
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
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
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...

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.