M
Mel
I have a datagrid control that has one column displaying a filename.
When the link is clicked it opens the file. How do I open a file that
resides on a remote server? The code below does not work. When I
click the link I get error #404 Page Not Found. PLEASE HELP!
'start of example code. The FullName = "\\SalesServer\Quotes
\123456\<file name>"
<aspataGrid runat="server" id="dgQuote" Font-Names="Verdana"
AutoGenerateColumns="False" AlternatingItemStyle-
BackColor="#eeeeee"
HeaderStyle-BackColor="Navy" HeaderStyle-ForeColor="White"
HeaderStyle-Font-Size="15pt" HeaderStyle-Font-Bold="True"
AllowPaging="True" AllowSorting="True" Font-Size="Small"
CellPadding="2">
<Columns>
<asp:HyperLinkColumn DataNavigateUrlField="FullName"
DataTextField="Name"
HeaderText="File Name" />
</Columns>
<SelectedItemStyle BackColor="#C5BBAF" />
<PagerStyle HorizontalAlign="Center" />
<AlternatingItemStyle BackColor="#E3EAEB" />
<HeaderStyle BackColor="#1C5E55" Font-Size="Small"
ForeColor="White" Font-Bold="True" />
</aspataGrid>
'end of example code
When the link is clicked it opens the file. How do I open a file that
resides on a remote server? The code below does not work. When I
click the link I get error #404 Page Not Found. PLEASE HELP!
'start of example code. The FullName = "\\SalesServer\Quotes
\123456\<file name>"
<aspataGrid runat="server" id="dgQuote" Font-Names="Verdana"
AutoGenerateColumns="False" AlternatingItemStyle-
BackColor="#eeeeee"
HeaderStyle-BackColor="Navy" HeaderStyle-ForeColor="White"
HeaderStyle-Font-Size="15pt" HeaderStyle-Font-Bold="True"
AllowPaging="True" AllowSorting="True" Font-Size="Small"
CellPadding="2">
<Columns>
<asp:HyperLinkColumn DataNavigateUrlField="FullName"
DataTextField="Name"
HeaderText="File Name" />
</Columns>
<SelectedItemStyle BackColor="#C5BBAF" />
<PagerStyle HorizontalAlign="Center" />
<AlternatingItemStyle BackColor="#E3EAEB" />
<HeaderStyle BackColor="#1C5E55" Font-Size="Small"
ForeColor="White" Font-Bold="True" />
</aspataGrid>
'end of example code