Rudebox.co.nr How To Forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Rudebox.co.nr How To Forums

Rudebox How To Forums - Ask Anything, View How To's
 
HomeSearchLatest imagesRegisterLog in

 

 ASP.net : how to save a file in memory on user computer

Go down 
AuthorMessage
Admin
Admin
Admin


Number of posts : 216
Registration date : 2007-01-01

ASP.net : how to save a file in memory on user computer Empty
PostSubject: ASP.net : how to save a file in memory on user computer   ASP.net : how to save a file in memory on user computer Icon_minitimeMon Jan 01, 2007 4:23 pm

How to save dynamic information on user client computer
Keywords: How to save dynamic information on user client computer, How to save a file that has not been created on user computer, how to save a file in memory on user computer

1. Convert the data in the file that you want to write into String

2. Then do as below

'here str is a string

Dim str As String = "THIS IS AN XML FILE"
Response.ContentType = "application/octet-stream"
Response.AddHeader("Content-Disposition", "attachment; filename=ad.xml")
Response.Write(str)
Response.End()
Back to top Go down
https://rudebox.editboard.com
 
ASP.net : how to save a file in memory on user computer
Back to top 
Page 1 of 1
 Similar topics
-
» How to show a save as in ASP .net
» Save and Synchroize Browser bookmarks (Ie,Firefox etc)
» save any audio you hear on your computer straight to mp3 or
» Easiest Way to convert a .doc file into .pdf
» File and Folder , How to change permissions

Permissions in this forum:You cannot reply to topics in this forum
Rudebox.co.nr How To Forums :: How To - Myspace / Website /Blog Utilities :: ASP .net-
Jump to: