Re: Raise an event in the client from the server

From: Ken Kolda (ken.kolda_at_elliemae-nospamplease.com)
Date: 08/24/04


Date: Tue, 24 Aug 2004 10:15:10 -0700

In this case, remoting isn't your answer. Because of the disconnected nature
of a web app, the web browser isn't capable of receiving asynchronous events
such as you're referring to (without resorting to plugins, java, etc.).
Instead, you will need to have your clients poll the server for new
messages. That said, this polling can be fairly transparent to the user. For
example, you could have a hidden frame (or IFrame) which you refresh every
10 seconds or so to see if there are any new messages.

Anyway, I'd post your message on the ASP.NET forums since you'll probably
get more help there.

Ken

"zorhel" <zorhel@zorhel.com> wrote in message
news:%236jStufiEHA.2908@TK2MSFTNGP10.phx.gbl...
> Ken, thanks for the answer, but my clients will be IE, Mozilla and Opera
in
> a Windows and *nix OS.
>
> So, my web app need to, from a server, send messages to a specific client
> (browser), send messages for all clients, redirect a client to another
page.
> In other way, a client will be able to send messages to another client,
> throw the server.
>
> These are the first funcionalities.
>
> That is it.
>
> Thanks again.
>
> Zorhel
>
> "Ken Kolda" <ken.kolda@elliemae-nospamplease.com> wrote in message
> news:OQwUQgfiEHA.4056@TK2MSFTNGP09.phx.gbl...
> > If this is just a plain, vanilla ASP.NET web application, then you're
> > probably going the wrong direction looking at .NET remoting. If you know
> > that your clients will use IE and have .NET installed, then you can
> > consider
> > writing a .NET component which IE would download and run to communicate
> > with
> > your server via remoting, but at this point your app is less of a "web
> > application" and more of a .NET app deployed via web browser.
> >
> > If you can clarify what your intent is and how your app is architected,
> > someone here can probably provide more advice.
> >
> > Ken
> >
> >
> > "zorhel" <zorhel@zorhel.com> wrote in message
> > news:u1MrsOdiEHA.2340@TK2MSFTNGP11.phx.gbl...
> >> Hi.
> >> How can I raise an event in a specific client, or in all clients, not
> > using
> >> thread, in a web application using asp.net?
> >> The .net remoting works in this case? How? I can't understand yet!
> >> Someone have any example?
> >>
> >> Thanks in advance.
> >>
> >> Zorhel
> >>
> >>
> >
> >
>
>



Relevant Pages

  • Re: Securing WM Services pubishing point
    ... authorisaition and authentication plugins for the server? ... particular client IP / Cookie etc is valid, ... which your web app would manage. ... When the client tries to connect to the media server, ...
    (microsoft.public.windowsmedia.sdk)
  • Re: AJAJS - thin client web app using mainly XMLHTTPRequest and eval()
    ... My web app uses no HTML templates and neither does it use any CSS ... JavaScript init.js call directly in init.js itself. ... resizing) are sent to my server application which then outputs more JS ... that get executed back on the client. ...
    (comp.lang.javascript)
  • Re: Installing a JRE plug-in
    ... You are correct that the JSP server runs Java. ... Sorry for not being explicit about client versus server. ... referring to plugins in a client side web browser. ...
    (Debian-User)
  • Re: One web server, multiple domains
    ... When the client (web browser) "clicks" on a hyperlink, ... first determine that the server to contact is www.yahoo.com. ...
    (comp.os.linux.networking)
  • Re: Sharing Data Structures between Client and Server
    ... a windows forms app and an ASP.NET web app ... The client communicates with the server via webservice calls. ...
    (microsoft.public.dotnet.framework.webservices)

Quantcast