Results 1 to 3 of 3

Thread: [RESOLVED] Want GridView ImageButton to run Excel

  1. #1

    Thread Starter
    PowerPoster MMock's Avatar
    Join Date
    Apr 2007
    Location
    My Mustang GT
    Posts
    4,562

    Resolved [RESOLVED] Want GridView ImageButton to run Excel

    This should be easy enough but it has me stumped.

    The last column in my gridview contains a label and an imagebutton. The label has the description of a report and the imagebutton displays a gif depending on the extension of the report. xls displays Excel image, like so:

    imgbtnDocDesc.ImageUrl = "../images/excel2.gif"

    But when I click on the image I want to run Excel and load the file. Is there a property I can set to the filename, or is it something more complicated than that? All my googling of gridview and Excel is coming up with how to export your gridview to Excel and I am having a hard time combing through all my hits to find what I need.

    Thanks.

  2. #2

    Thread Starter
    PowerPoster MMock's Avatar
    Join Date
    Apr 2007
    Location
    My Mustang GT
    Posts
    4,562

    Re: Want GridView ImageButton to run Excel

    Oh, I think a Hyperlink will solve all my problems.

  3. #3

    Thread Starter
    PowerPoster MMock's Avatar
    Join Date
    Apr 2007
    Location
    My Mustang GT
    Posts
    4,562

    Re: Want GridView ImageButton to run Excel

    Yes, it did.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width