これは、windows.forms を asp.net (aspx.cs) ページにインポートする必要がある最初のいくつかの助けになると思います。
using System.Windows.Forms;
次に、ボタンを取得してイベントを生成します。以下のコードを使用すると、[名前を付けて保存] ダイアログ ボックスが表示されます。
SaveFileDialog my_Sfd1 = new SaveFileDialog();
my_Sfd1.Filter = "All files (*.*)|*.*"; //here you can specify the file format.(*.*)indicates all files.
my_Sfd1.Title = "Save file to"; //Title to display at top of the dialog box
my_Sfd1.FilterIndex = 2;
my_Sfd1.RestoreDirectory = true;
if (DialogResult.OK == (new Invoker(my_Sfd1).Invoke()))
{
//add file here which you want to save.
}