Devashri B.
Devashri B.

Reputation: 2723

How to create Save File Dialog Box in user control?

I want to open a file dialog box in user control. I used using System.Windows.Forms, but still I can't access SaveFileDialog class. Can anybody tell me how to do this? Thanks.

Upvotes: 2

Views: 3196

Answers (3)

Devashri B.
Devashri B.

Reputation: 2723

Thanks for your reply. I found solution for this and its working. I used HTTPHandler to download file on cliet side.

Upvotes: 0

oglester
oglester

Reputation: 6655

<input type=file> 

or

<asp:FileUpLoad id="FileUpLoad1" runat="server" />

might be what you have in mind. It will let the user upload a file as part of the POST.

Upvotes: 0

shahkalpesh
shahkalpesh

Reputation: 33474

You cannot use SaveFileDialog in asp.net (if I look at the tags of the question).

It seems you want to let the uset click on some button to download a file and prompt the user to save it.

If that is a correct assumption, see the accepted answer at with just a plain html and js file, how can i force a link to an mp3 to download instead of just play?

Upvotes: 2

Related Questions