Hello,
I have a datagrid that I build the datasource like this:
And here is the HTML...
I need to be able for the file to open once the hyperlink is clicked. Anyone know how to do this???
I have a datagrid that I build the datasource like this:
Code:
'Code Behind
Dim dirInfo As New DirectoryInfo(Global.g_sCONNAttachRoot)
dgConnFiles.DataSource = dirInfo.GetFiles(sCoAbbrev & "-*.*")
dgConnFiles.DataBind()
And here is the HTML...
Code:
<asp:datagrid id="dgConnFiles" style="BACKGROUND-COLOR: aliceblue" runat="server" Width="100%" Font-Size="xx-Small"
Font-Names="verdana,arial,helvetica,sans-serif" bordercolor="white" cellpadding="1" Cellspacing="0" AutoGenerateColumns="False" BorderWidth="1" HeaderStyle-Font-Bold="True" HeaderStyle-ForeColor="Navy" HeaderStyle-BackColor="lightsteelblue" DataKeyField="FullName">
<AlternatingItemStyle Wrap="False"></AlternatingItemStyle>
<ItemStyle Wrap="False" HorizontalAlign="Center"></ItemStyle>
<Columns>
<asp:ButtonColumn HeaderText="Delete" Text="Delete" ButtonType="LinkButton" CommandName="Delete" ItemStyle-HorizontalAlign="Left" />
<asp:HyperLinkColumn DataNavigateUrlField="Name" DataTextField="Name" HeaderText="File Name" ItemStyle-HorizontalAlign="Left" />
</Columns>
</asp:DataGrid>
I need to be able for the file to open once the hyperlink is clicked. Anyone know how to do this???