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. link button

link button

Scheduled Pinned Locked Moved ASP.NET
tutorial
8 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.
  • K Offline
    K Offline
    kulandaivel_mca2007
    wrote on last edited by
    #1

    how to open a excel using link button...

    C 1 Reply Last reply
    0
    • K kulandaivel_mca2007

      how to open a excel using link button...

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

      Point to the XLS and hope that the user has Excel on their machine ?

      Christian Graus Driven to the arms of OSX by Vista.

      K 1 Reply Last reply
      0
      • C Christian Graus

        Point to the XLS and hope that the user has Excel on their machine ?

        Christian Graus Driven to the arms of OSX by Vista.

        K Offline
        K Offline
        kulandaivel_mca2007
        wrote on last edited by
        #3

        REPORT I USED THIS CODE TO OPEN EXCEL SHEET... THE ABOVE EXCELL SHEET IS PRESENT IN MY PROJECT ITSELF.... I WANT TO JUST OPEN AND SEE THE EXCEL SHEET WHICH WAS LOCATED IN MY d:

        C 1 Reply Last reply
        0
        • K kulandaivel_mca2007

          REPORT I USED THIS CODE TO OPEN EXCEL SHEET... THE ABOVE EXCELL SHEET IS PRESENT IN MY PROJECT ITSELF.... I WANT TO JUST OPEN AND SEE THE EXCEL SHEET WHICH WAS LOCATED IN MY d:

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

          kulandaivel_mca2007 wrote:

          I WANT TO JUST OPEN AND SEE THE EXCEL SHEET WHICH WAS LOCATED IN MY d:

          Don't shout. If the sheet is on your local drive, how is that a real world situation ? You may be able to link to it in your HTML, but how do you know what excel sheets will be on your users local drives ?

          Christian Graus Driven to the arms of OSX by Vista.

          K 1 Reply Last reply
          0
          • C Christian Graus

            kulandaivel_mca2007 wrote:

            I WANT TO JUST OPEN AND SEE THE EXCEL SHEET WHICH WAS LOCATED IN MY d:

            Don't shout. If the sheet is on your local drive, how is that a real world situation ? You may be able to link to it in your HTML, but how do you know what excel sheets will be on your users local drives ?

            Christian Graus Driven to the arms of OSX by Vista.

            K Offline
            K Offline
            kulandaivel_mca2007
            wrote on last edited by
            #5

            u are right.... i have only the file name i have to open that how can do this...

            A 1 Reply Last reply
            0
            • K kulandaivel_mca2007

              u are right.... i have only the file name i have to open that how can do this...

              A Offline
              A Offline
              anujbanka1784
              wrote on last edited by
              #6

              protected void abc(object sender, EventArgs e) { //LinkButton lk = (LinkButton)sender; //Response.Redirect("default.aspx"); // Server.Transfer("default.aspx?ArtID=" + lnk.Text); // GridView gvr = (GridView)sender; LinkButton lb = new LinkButton(); lb = ((LinkButton)sender); string strUrl = "~\\aijaz\\" + lb.Text; Response.Redirect(strUrl); } call this on linkbutton onclick="abc"

              K 1 Reply Last reply
              0
              • A anujbanka1784

                protected void abc(object sender, EventArgs e) { //LinkButton lk = (LinkButton)sender; //Response.Redirect("default.aspx"); // Server.Transfer("default.aspx?ArtID=" + lnk.Text); // GridView gvr = (GridView)sender; LinkButton lb = new LinkButton(); lb = ((LinkButton)sender); string strUrl = "~\\aijaz\\" + lb.Text; Response.Redirect(strUrl); } call this on linkbutton onclick="abc"

                K Offline
                K Offline
                kulandaivel_mca2007
                wrote on last edited by
                #7

                u are giving solution for excel file present in my project... it is working fine.... but my requirement is opening the excel file present D:

                A 1 Reply Last reply
                0
                • K kulandaivel_mca2007

                  u are giving solution for excel file present in my project... it is working fine.... but my requirement is opening the excel file present D:

                  A Offline
                  A Offline
                  anujbanka1784
                  wrote on last edited by
                  #8

                  http://www.codeproject.com/KB/aspnet/fileupload.aspx\[^\] It covers the following 6 areas- * How to set up a form for file uploading * How to receive uploaded files on the server side * How to save uploaded files to hard drive * How to save uploaded files in a database * How to retrieve a file that is stored in a database and return it to a client * Security considerations running the demo project

                  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