Reputation: 3492
Edit: I am working on Web Application.
How do I invoke a Dialog window which allows us to save a file in C#?
If I am able to show the window, then I would be able to save the file automatically to the desired window
Upvotes: 1
Views: 162
Reputation: 81675
string saveName;
using (SaveFileDialog saveFile = new SaveFileDialog())
{
if (saveFile.ShowDialog() == DialogResult.OK)
saveName = saveFile.FileName;
}
Upvotes: 4