Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Translating West Wind code into .NET
Message
De
17/05/2006 20:39:51
 
 
À
17/05/2006 15:53:40
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 8.0
Divers
Thread ID:
01122974
Message ID:
01123070
Vues:
21
>Anyone would know how to translate this West Wind code in .NET?
>
>
>loHeader = CREATEOBJECT( "wwHTTPHeader")
>loHeader.SetProtocol()
>loHeader.SetContentType("application/zip")
>loHeader.AddHeader("Content-Length",TRANSFORM( LEN( cInfo)))
>loHeader.AddHeader("Content-Disposition", " :attachment ;filename=" + cFileName )
>loHeader.AddHeader("Accept-Ranges","bytes")
>loHeader.AddHeader("Connection","Close")
>Response.Rewind()
>Response.ContentTypeHeader(loHeader)
>Response.Write(cInfo)
>
The Response object does about the same in .NET. I was able to simulate the same by that use.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform