Can you call the "Save As" Dialog or equivelant in asp.net?

aikeith

Well-known member
Joined
Jan 23, 2003
Messages
49
Can you call the "Save As" Dialog or equivelant in asp.net?

Preferably with vb.net code?

I know I can use the StreamWriter Class, but I was hoping there was an easier way for the user to do this:

1.) Type in the web form.
2.) When done, the user hits next/complete and the file/SaveAs dialog would appear and let the user save the webform in .doc format to thier c: drive?

Any help would be appreciated.:D
 
Dim sw As System.IO.StreamWriter
Try
sw = New System.IO.StreamWriter(FilePath, Append)
sw.Write(FileContent)
Return True
Catch e As Exception
Return False
Finally
If Not sw Is Nothing Then sw.Close()
End Try
 
hmmm, I re-read your original post, do you want the user to save the Web-Form as a Word Doc... with all the textboxes and formatting?

Or save a doc from the server disk?
 
I would like for the user to save the web-form as a word doc (on thier local drive) with all the information entered into the textbox and keep the formatting. No saving to the server.

Thanks Robby
 
DOES ANYONE ELSE KNOW OF AS TOOL/FUNCTION?

DOES ANYONE ELSE KNOW OF AS TOOL/FUNCTION for a File Save As on an aspx page.

???:( ???
 
Back
Top