Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A page response plus a download
Message
De
07/09/2006 10:17:29
Keith Payne
Technical Marketing Solutions
Floride, États-Unis
 
 
À
07/09/2006 00:32:38
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01151591
Message ID:
01151798
Vues:
31
>Is there a way in ASP.NET to obtain a page response but to also initiate a download once the page has completed?

Yes there is. It takes a little javascript and an AJAX-style partial postback to get the content. I haven't coded it myself, but you can see it working at msn. You could also use a web service and the DHTML Webservice Behavior to return the content after the response: http://msdn.microsoft.com/library/default.asp?url=/workshop/author/webservice/overview.asp.

Put an empty DIV on the page then stuff it with the content by hooking the onLoad event in BODY.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform