Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Save Dialog in asp.net

Save Dialog in asp.net

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netsysadmin
7 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    ballameharmurali
    wrote on last edited by
    #1

    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

    D R C 3 Replies Last reply
    0
    • B ballameharmurali

      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

      D Offline
      D Offline
      dan sh
      wrote on last edited by
      #2

      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();

      B 1 Reply Last reply
      0
      • B ballameharmurali

        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

        R Offline
        R Offline
        r a m e s h
        wrote on last edited by
        #3

        Is this[^] you needed?

        B 1 Reply Last reply
        0
        • B ballameharmurali

          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

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          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

          B 1 Reply Last reply
          0
          • D dan sh

            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();

            B Offline
            B Offline
            ballameharmurali
            wrote on last edited by
            #5

            Hi , Thanks it is working ... byee murali

            1 Reply Last reply
            0
            • R r a m e s h

              Is this[^] you needed?

              B Offline
              B Offline
              ballameharmurali
              wrote on last edited by
              #6

              yes thanks murali

              1 Reply Last reply
              0
              • C Christian Graus

                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

                B Offline
                B Offline
                ballameharmurali
                wrote on last edited by
                #7

                Hi, I will try in the format. I think it is better way to get the code. Thanks murali

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups