[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.
Re: Want GridView ImageButton to run Excel
Oh, I think a Hyperlink will solve all my problems.
Re: Want GridView ImageButton to run Excel