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. Replacing the Old File With Newly Uploaded File

Replacing the Old File With Newly Uploaded File

Scheduled Pinned Locked Moved ASP.NET
databasecss
4 Posts 3 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.
  • D Offline
    D Offline
    demouser743
    wrote on last edited by
    #1

    Hello one and all, I am having small requirement. I am having some data stored in SQL DB. I am displaying that data in a grid view as follows Id Name Filename 1 Dorababu dora.doc 2 Khan khan.pdf 3 XYZ XYZ.jpg all these filenames are displayed in link button inside grid view. What i need is when i click on particular name like .oc or .pdf or .jpg i would like to get the following thing as Open Save Cancel as we get when we are downloading an attachment from mail. Can an one give me the code for my requirement please. Thanks in Advance, M.Dorababu

    A 1 Reply Last reply
    0
    • D demouser743

      Hello one and all, I am having small requirement. I am having some data stored in SQL DB. I am displaying that data in a grid view as follows Id Name Filename 1 Dorababu dora.doc 2 Khan khan.pdf 3 XYZ XYZ.jpg all these filenames are displayed in link button inside grid view. What i need is when i click on particular name like .oc or .pdf or .jpg i would like to get the following thing as Open Save Cancel as we get when we are downloading an attachment from mail. Can an one give me the code for my requirement please. Thanks in Advance, M.Dorababu

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      Use filename in simple href tag. :)

      cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net

      D 1 Reply Last reply
      0
      • A Abhijit Jana

        Use filename in simple href tag. :)

        cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net

        D Offline
        D Offline
        demouser743
        wrote on last edited by
        #3

        Can you tell what to do actually my code is like this <ItemTemplate> <asp:LinkButton ID="Link1" runat="server" Text='<%# Bind("filename") %>' ></asp:LinkButton> </ItemTemplate> So can you tell what to do here

        K 1 Reply Last reply
        0
        • D demouser743

          Can you tell what to do actually my code is like this <ItemTemplate> <asp:LinkButton ID="Link1" runat="server" Text='<%# Bind("filename") %>' ></asp:LinkButton> </ItemTemplate> So can you tell what to do here

          K Offline
          K Offline
          Kapil Thakur
          wrote on last edited by
          #4

          use a hyperlink instead of linkbutton and give the path of the file in its NavigateURL attribute.

          Regards, Kapil Thakur (Where's there is Kapil , there is a way) - thakur.kapil@gmail.com

          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