click Image button to open file url
Posted on 2007-12-03
I have an image button in a datagrid, and I need to open a word document. Can I specify a file url, and if so, how? Right now my image button is defined as:
<asp:ImageButton class="Image" id="imgDetails" title="Details" runat="server" CommandName="Details"
and on the ItemCommand event is where I want to specify to open a word document thats name is dependent on a couple cells in the grid:
open file url ""file://path/" + e.Item.Cells.Text + e.Item.Cells.Text + ".doc";
Can anyone help? trying to write this in asp.net c#...