0

I am developing by using Asp.net/C#, and on designing .aspx Web Form page; I need to use SaveFileDialog control.

The control in MS Visual Studio-Community 2015 is not displayed in the Toolbox (left side), where I chose it in the .Net Components window.

so what to do ?

Obaida
  • 1
  • 3
  • Where are you going to run this Save File Dialog? On the client? The "user agent" (i.e., the browser) is what controls the client. Your C# code is running on the server. – Flydog57 Oct 29 '18 at 15:55
  • @Flydog57 I am designing .aspx page so I want to view the SaveFileDialog on the browser for client interaction – Obaida Oct 29 '18 at 15:57
  • SaveFiledialog is for windows forms, not asp. You should google for how to select file in browser – T.S. Oct 29 '18 at 16:03
  • When a user causes a file to be downloaded to his/her browser, then the browser should pop up a Save As dialog. You don't control that. – Flydog57 Oct 29 '18 at 16:26
  • @T.S. But I created a Windows Form which is based on ASP.net. – Obaida Oct 29 '18 at 17:21
  • @Flydog57 Exactly, that I want from the user to choose the file > and save it in somewhere. But I can't find the control where online I found many people used it in ASP.NET. – Obaida Oct 29 '18 at 17:21
  • You say you are "designing .aspx Web Form page". That's a web page, not a Windows Form. You don't have any control over that Save As dialog, the user and the browser does. What you have control of are the link(s) he/she might click, the mime-types associated with those links, etc. – Flydog57 Oct 29 '18 at 18:01
  • you really need to sort yourself. You use `WinForms` or `Asp.net`. I probably know better than you; what are you using - you using `Asp.net WEB forms` So, you need to open GOOGLE and search for - open file upload in asp.net. I voted to close your question because it has been answered many times and there are youtube videos. You have not done research. So, your question should be closed. [Also look here](https://stackoverflow.com/questions/569565/uploading-files-in-asp-net-without-using-the-fileupload-server-control) – T.S. Oct 29 '18 at 18:53
  • @Flydog57 Thank you for your response. Now I realized the difference. – Obaida Oct 30 '18 at 06:09
  • @T.S. I searched for many hours but I was not hitting the right point in searching so it's fine to ask the question if I don't know, where I take a look about the previous questions in stack overflow and didn't find what I want or didn't know about what should I search. – Obaida Oct 30 '18 at 06:12
  • You can ask the question. But you will not get an answer for such question. I searched google and in 5 seconds, I retrieved your answer multiple times – T.S. Oct 30 '18 at 15:56

0 Answers0