Save Dialog in asp.net
-
hello everyone, I want to save the .mdb file when i click download button in asp.net.When i click the download the .mdb file is saving in the server . I tried for save dialog box so that we can save the .mdb file at our own choice in the system. save dialog is working for only txt files ... but it is not working for .mdb file.Do anybody have the code for Save Dialog for .mdb using vb.net. Thanks murali
-
hello everyone, I want to save the .mdb file when i click download button in asp.net.When i click the download the .mdb file is saving in the server . I tried for save dialog box so that we can save the .mdb file at our own choice in the system. save dialog is working for only txt files ... but it is not working for .mdb file.Do anybody have the code for Save Dialog for .mdb using vb.net. Thanks murali
-
hello everyone, I want to save the .mdb file when i click download button in asp.net.When i click the download the .mdb file is saving in the server . I tried for save dialog box so that we can save the .mdb file at our own choice in the system. save dialog is working for only txt files ... but it is not working for .mdb file.Do anybody have the code for Save Dialog for .mdb using vb.net. Thanks murali
-
hello everyone, I want to save the .mdb file when i click download button in asp.net.When i click the download the .mdb file is saving in the server . I tried for save dialog box so that we can save the .mdb file at our own choice in the system. save dialog is working for only txt files ... but it is not working for .mdb file.Do anybody have the code for Save Dialog for .mdb using vb.net. Thanks murali
It helps if you post code, but I suspect this has to mean that you're writing a save dialog in your code behind, which obviously you should never do, because that's just not how ASP.NET works. If you do a Server.BinaryWrite of a file and set the header, they will get a download save as dialog.
Christian Graus Driven to the arms of OSX by Vista. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums. I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
-
Following code might help you (its in C# though):
Response.ContentType = "text/css";
Response.AppendHeader("Content-Disposition", "attachment; filename=CSSFile.css");
Response.TransmitFile(Server.MapPath("~/CSSFile.css"));
Response.End();Hi , Thanks it is working ... byee murali
-
yes thanks murali
-
It helps if you post code, but I suspect this has to mean that you're writing a save dialog in your code behind, which obviously you should never do, because that's just not how ASP.NET works. If you do a Server.BinaryWrite of a file and set the header, they will get a download save as dialog.
Christian Graus Driven to the arms of OSX by Vista. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums. I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
Hi, I will try in the format. I think it is better way to get the code. Thanks murali