Rudebox.co.nr How To Forums

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

Share | 
 

 How to show a save as in ASP .net

Go down 
AuthorMessage
Admin
Admin
avatar

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

PostSubject: How to show a save as in ASP .net   Mon Jan 01, 2007 4:27 pm

How to show a save as in ASP .net
How to show a save as in ASP .net , How to show a SaveAs in ASP .net , How to show a Save Dialog Box in ASP .net , How to show a SaveAs Dialog Box in ASP .net , How to show a Save As Dialog Box in ASP .net.

'ad.xml is a virtual path, on server, or directory that should exist
Dim filePath As String = Server.MapPath("ad.xml")
Dim targetFile As System.IO.FileInfo = New System.IO.FileInfo(filePath)



Response.Clear()
Response.AddHeader("Content-Disposition", "attachment; filename=" + targetFile.Name)
Response.AddHeader("Content-Length", targetFile.Length.ToString)
Response.ContentType = "application/octet-stream"
Response.WriteFile(targetFile.FullName)
Back to top Go down
View user profile http://rudebox.editboard.com
 
How to show a save as in ASP .net
Back to top 
Page 1 of 1

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: