Ask a Question related to ASP.NET General, Design and Development.
-
DesignerX #1
how to do a server push
At a certain page in my web app I'm entering users into a Queue for
processing, how can I do a server push (like the expedia 'searching for
flights' screen) that can display a progress page then update when the
users.
Note: I'm not interested in client refresh.
Thanks,
Stan
DesignerX Guest
-
Blazeds server push and multiple flex instances
I am working on a project to push data from a server to a flex chart drawing application. However each chart needs to run as its own page. Up til... -
How to push realtime data from SQL Server
Hello, I am looking for the best way to approach the following situation ... 1) how to connect 2) what I will need to maintain "realtime"... -
Can you push XML data with Media Server 2
Can you use Media Server 2 to PUSH just regular data to a SWF say like XML data sent every second? THX Kevin -
Server PUSH to client
We have an internal asp.net application for orders/manufacturing information. Presently we have set the META Refresh tag on the affected pages set... -
Server push
Hi all, I have developed a PHP-based website where a "planner" user can make up schedules of activities to be performed, storing them into MySQL... -
Alex K #2
Re: how to do a server push
if you what to get data from server with out refresh
you can create web service and call from javascript
example
you can dounload webservice.htc from microsoft
<script language="javascript">
<!--
function init()
{
service1.useService("../Utill/SendEmailRemotly.asmx?WSDL","Send_Email");
}
//________
function getResultFromWebService(result){
alert(result.value);
}
//________
function GetId(sender, args){
var invalue=args.Value;
var funid;
funid =
service1.Send_Email.callService(getResultFromWebSe rvice,"SendEmail",invalue)
args.IsValid = true;
}
//-->
</script>
</HEAD>
<body onload="init()">
<div id="service1" style="BEHAVIOR:url(webservice.htc)"></div>
<form id="Form1" method="post" runat="server">
<asp:TextBox ID="txtEmailAddress" Runat="server"></asp:TextBox>
<asp:CustomValidator id="CV1" runat="server"
ControlToValidate="txtEmailAddress"
ClientValidationFunction="GetId"></asp:CustomValidator>
<input type="text">
</form>
</body>
</HTML>
"DesignerX" <designerx2@yahoo.com> wrote in message
news:zvadnXILdKVNsaSiRTvUpQ@giganews.com...> At a certain page in my web app I'm entering users into a Queue for
> processing, how can I do a server push (like the expedia 'searching for
> flights' screen) that can display a progress page then update when the
> users.
>
> Note: I'm not interested in client refresh.
>
> Thanks,
>
> Stan
>
>
Alex K Guest
-
Steve C. Orr, MCSD #3
Re: how to do a server push
Justin is correct.
The link he supplied shows a technique very similar to how Expedia works
(BTW, it uses a client refresh,) so that's likely what you'll want to
explore.
Another option is that you could periodocially call a web service from your
client side JScript to see if the processing is complete. You'd need a
client side timer for this. You'll also likely need to use the web service
behavior. (WebService.htc) This technique works with IE only.
Here's more details:
[url]http://msdn.microsoft.com/library/default.asp?url=/workshop/author/behaviors/overview.asp[/url]
[url]http://msdn.microsoft.com/downloads/samples/internet/default.asp?url=/downloads/samples/internet/behaviors/library/webservice/default.asp[/url]
--
I hope this helps,
Steve C. Orr, MCSD
[url]http://Steve.Orr.net[/url]
Developer for Hire
"DesignerX" <designerx2@yahoo.com> wrote in message
news:zvadnXILdKVNsaSiRTvUpQ@giganews.com...> At a certain page in my web app I'm entering users into a Queue for
> processing, how can I do a server push (like the expedia 'searching for
> flights' screen) that can display a progress page then update when the
> users.
>
> Note: I'm not interested in client refresh.
>
> Thanks,
>
> Stan
>
>
Steve C. Orr, MCSD Guest
-
DesignerX #4
Re: how to do a server push
Very much appreciated! looks like a good example.
Thank You.
Stan
"S. Justin Gengo" <sjgengo@aboutfortunate.com> wrote in message
news:uZ3V2DQYDHA.4040@tk2msftngp13.phx.gbl...and> Stan,
>
> The only way to do a true server push is to install your own component on
> the client. To do this your users will have to agree to the download.
>
> If you do decide to use a meta refresh here is a great article:
>
> Boost Web Performance with Multithreading
> [url]http://www.ftponline.com/vsm/2002_11/magazine/features/chester/[/url]
>
> It shows how to spawn a thread to perform things like a database lookupthe> how to use a meta refresh tag on the client to poll the server for when> thread is finished.
>
> The way http is set up (stateless) inherently keeps it from doing what you
> wish without some type of plugin for the browser.
>
> Sincerely,
>
> --
> S. Justin Gengo, MCP
> Web Developer
>
> Free code library at:
> [url]www.aboutfortunate.com[/url]
>
> "Out of chaos comes order."
> Nietzche
>
>
> "DesignerX" <designerx2@yahoo.com> wrote in message
> news:zvadnXILdKVNsaSiRTvUpQ@giganews.com...>> > At a certain page in my web app I'm entering users into a Queue for
> > processing, how can I do a server push (like the expedia 'searching for
> > flights' screen) that can display a progress page then update when the
> > users.
> >
> > Note: I'm not interested in client refresh.
> >
> > Thanks,
> >
> > Stan
> >
> >
>
DesignerX Guest



Reply With Quote

