Save As Dialog Box in Asp.Net Application
-
Hi, I want to implement Save As Dialog Box Asp.Net Application but there is no specific save dialog file and open dialog file in toolbox. I tried the following code to open Save as Dialog box Response.ContentType = "image/jpeg"; Response.AppendHeader("Content-Disposition", "attachment; filename=image.jpg"); Response.TransmitFile(Server.MapPath("~/images/")); But in this I am specifying specific file to save but i need to enter the file name dynamically by the user to save it in specified path. Can anyone please help me how to resolve this problem. Thanks in Advance Pavani
-
Hi, I want to implement Save As Dialog Box Asp.Net Application but there is no specific save dialog file and open dialog file in toolbox. I tried the following code to open Save as Dialog box Response.ContentType = "image/jpeg"; Response.AppendHeader("Content-Disposition", "attachment; filename=image.jpg"); Response.TransmitFile(Server.MapPath("~/images/")); But in this I am specifying specific file to save but i need to enter the file name dynamically by the user to save it in specified path. Can anyone please help me how to resolve this problem. Thanks in Advance Pavani
means ASP.NET from browser... Its not possible.. :^) :^)
Abhishek Sur My Latest Articles Basics on LINQ and Lambda Expressions
Create .NET Templates -
Hi, I want to implement Save As Dialog Box Asp.Net Application but there is no specific save dialog file and open dialog file in toolbox. I tried the following code to open Save as Dialog box Response.ContentType = "image/jpeg"; Response.AppendHeader("Content-Disposition", "attachment; filename=image.jpg"); Response.TransmitFile(Server.MapPath("~/images/")); But in this I am specifying specific file to save but i need to enter the file name dynamically by the user to save it in specified path. Can anyone please help me how to resolve this problem. Thanks in Advance Pavani
Why you are trying to do so? Client Browser will give him a message for save/open/Run etc... and if clicks on Save, it will save it to default Download location that already set by the user.
cheers, Abhijit CodeProject MVP
-
Why you are trying to do so? Client Browser will give him a message for save/open/Run etc... and if clicks on Save, it will save it to default Download location that already set by the user.
cheers, Abhijit CodeProject MVP
Hello i'm also trying to do the same on "button click" it should ask for physical path to save! please help