Ask a Question related to ASP.NET General, Design and Development.
-
arc #1
Double prompt while File download in ASP.NET
I am using this simple code snippet in downloading file but it gives me
double prompt while opening the file. Save is fine.
What could be the problem?
private void Page_Load(object sender, System.EventArgs e)
{
string sFilename = Request.QueryString["file"];
string sFile =
System.Configuration.ConfigurationSettings.AppSett ings["FilePath"] +
sFilename;
Response.Clear();
Response.ContentType = "application/octet-stream";
Response.AddHeader("content-disposition", "attachment; filename=" +
sFilename.Substring(sFilename.IndexOf("_")+1));
Response.Flush();
Response.WriteFile(sFile);
}
Thanks
Arc
arc Guest
-
Prompt in IE7 to download flashplayer not working
I am using Dreamweaver 8 and have a web page that runs a flash movie. When it is viewed with Netscape, Firefox or ie6 and flashplayer is not... -
File Uploads: Prompt for overwrite
Okay, really simple question -- at least I hope. When playing with the tutorial site, I uploaded a file to test, then again tried to replace it... -
Cant double click file to open in PS CS
I'm finding what others have found, that I can't double click a PS CS file on the desktop and have it open in PS CS. PS CS opens but the file... -
Disabling the download prompt for Shockwave
I ahve a web site that has a shockwave animation on it that I've made. I've put a GIF animation behind the shockwave animation so if the person... -
File download prompt window
Typically, when clicking on a link on the internet that requires a download such as a.mpg file, a window pops up that gives the option to "save to...



Reply With Quote

