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>"
<asp:DataGrid runat="server" id="dgQuote" Font-Names="Verdana"
AutoGenerateCol umns="False" AlternatingItem Style-
BackColor="#eee eee"
HeaderStyle-BackColor="Navy " HeaderStyle-ForeColor="Whit e"
HeaderStyle-Font-Size="15pt" HeaderStyle-Font-Bold="True"
AllowPaging="Tr ue" AllowSorting="T rue" Font-Size="Small"
CellPadding="2" >
<Columns>
<asp:HyperLinkC olumn DataNavigateUrl Field="FullName "
DataTextField=" Name"
HeaderText="Fil e Name" />
</Columns>
<SelectedItemSt yle BackColor="#C5B BAF" />
<PagerStyle HorizontalAlign ="Center" />
<AlternatingIte mStyle BackColor="#E3E AEB" />
<HeaderStyle BackColor="#1C5 E55" Font-Size="Small"
ForeColor="Whit e" Font-Bold="True" />
</asp:DataGrid>
'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>"
<asp:DataGrid runat="server" id="dgQuote" Font-Names="Verdana"
AutoGenerateCol umns="False" AlternatingItem Style-
BackColor="#eee eee"
HeaderStyle-BackColor="Navy " HeaderStyle-ForeColor="Whit e"
HeaderStyle-Font-Size="15pt" HeaderStyle-Font-Bold="True"
AllowPaging="Tr ue" AllowSorting="T rue" Font-Size="Small"
CellPadding="2" >
<Columns>
<asp:HyperLinkC olumn DataNavigateUrl Field="FullName "
DataTextField=" Name"
HeaderText="Fil e Name" />
</Columns>
<SelectedItemSt yle BackColor="#C5B BAF" />
<PagerStyle HorizontalAlign ="Center" />
<AlternatingIte mStyle BackColor="#E3E AEB" />
<HeaderStyle BackColor="#1C5 E55" Font-Size="Small"
ForeColor="Whit e" Font-Bold="True" />
</asp:DataGrid>
'end of example code
Comment