Jump to content
Xtreme .Net Talk

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


Recommended Posts

Posted

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

Posted

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

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...