Re: Raise an event in the client from the server
From: Ken Kolda (ken.kolda_at_elliemae-nospamplease.com)
Date: 08/24/04
- Next message: zorhel: "Re: Raise an event in the client from the server"
- Previous message: Bob Rundle: "Re: Async remoting events."
- In reply to: zorhel: "Re: Raise an event in the client from the server"
- Next in thread: zorhel: "Re: Raise an event in the client from the server"
- Reply: zorhel: "Re: Raise an event in the client from the server"
- Messages sorted by: [ date ] [ thread ]
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
> >>
> >>
> >
> >
>
>
- Next message: zorhel: "Re: Raise an event in the client from the server"
- Previous message: Bob Rundle: "Re: Async remoting events."
- In reply to: zorhel: "Re: Raise an event in the client from the server"
- Next in thread: zorhel: "Re: Raise an event in the client from the server"
- Reply: zorhel: "Re: Raise an event in the client from the server"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|