mail-archives/mono-list/2005-February/025579.html

92 строки
3.5 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-list] Mono, ASP.NET et Javascript push
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:Alain%20Perry%20%3Calain.perry%40gmail.com%3E">
<META NAME="robots" CONTENT="index,nofollow">
<LINK REL="Previous" HREF="025578.html">
<LINK REL="Next" HREF="025580.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-list] Mono, ASP.NET et Javascript push
</H1>
<B>Alain Perry
</B>
<A HREF="mailto:Alain%20Perry%20%3Calain.perry%40gmail.com%3E"
TITLE="[Mono-list] Mono, ASP.NET et Javascript push">Alain Perry &lt;alain.perry@gmail.com&gt;
</A><BR>
<I>Thu, 3 Feb 2005 21:34:00 +0100</I>
<P><UL>
<LI> Previous message: <A HREF="025578.html">[Mono-list] Simple app works in .NET 1.1 but not in Mono
</A></li>
<LI> Next message: <A HREF="025580.html">[Mono-list] Mono, ASP.NET et Javascript push
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#25579">[ date ]</a>
<a href="thread.html#25579">[ thread ]</a>
<a href="subject.html#25579">[ subject ]</a>
<a href="author.html#25579">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Hi list,
This is partly OT, but I thought maybe some of you might at least know
where to find information on the Internet about this.
I am trying to code a little web-based jabber client with Mono. A
jabber library already exists that compiles and runs great with Mono,
so that will greatly simplify it all. Thanks guys !
However, I am looking for some information about the way things work
with ASP.NET.
Actually, the application will use a javascript PUSH method to send
trigger functions in the HTML webpage when a jabber event is received
on the server. This means I need to keep the connection alive. I tried
to do so using
Response.AppendHeader (&quot;Connection&quot;, &quot;keep-alive&quot;);
Response.AppendHeader (&quot;Keep-Alive&quot;, &quot;timeout=16, max=100&quot;);
in the Page_Load method of my page. However, when everything in this
method is done, the connection is still cut, and nothing is processed
anymore. If I add a Thread.Sleep(1000) at the end of Page_Load, then
the function that sends the &quot;&lt;script/&gt;&quot; events is triggered, and the
webpage receives it, so the function does work. I am wondering if any
of you guys has an idea about how to keep a connection alive with
ASP.NET in order to do javascript push.
Another question: if a Webforms control is already displayed on a web
page, and, while the connection is still alive, the data in this
control is modified, will ASP.NET send a javascript event to modify
its content ? In other words, can ASP.NET Webforms do the javascript
work for me ?
Thanks for your help, and sorry if I have been unclear. Tell me where
and I'll try to explain it better :-)
--
Alain Perry
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="025578.html">[Mono-list] Simple app works in .NET 1.1 but not in Mono
</A></li>
<LI> Next message: <A HREF="025580.html">[Mono-list] Mono, ASP.NET et Javascript push
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#25579">[ date ]</a>
<a href="thread.html#25579">[ thread ]</a>
<a href="subject.html#25579">[ subject ]</a>
<a href="author.html#25579">[ author ]</a>
</LI>
</UL>
</body></html>