Datagrid broken link
am 11.04.2008 20:38:42 von 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\"
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">
DataTextField="Name"
HeaderText="File Name" />
ForeColor="White" Font-Bold="True" />
'end of example code
Re: Datagrid broken link
am 11.04.2008 22:23:06 von Mel
On Apr 11, 1:38 pm, Mel wrote:
> 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\"
>
> 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">
>
>
> DataTextField="Name"
> HeaderText="File Name" />
>
>
>
>
>
> ForeColor="White" Font-Bold="True" />
>
> 'end of example code
I should have said "How do I open a file that resides on a DIFFERENT
server" meaning the server is on site; NOT a remote server which
implies off site.
Re: Datagrid broken link
am 13.04.2008 02:17:12 von Theo
On Apr 11, 2:38 pm, Mel wrote:
> 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\"
>
> 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">
>
>
> DataTextField="Name"
> HeaderText="File Name" />
>
>
>
>
>
> ForeColor="White" Font-Bold="True" />
>
> 'end of example code
You need to convert the file name into something that the browser can
resolve. That could mean converting the UNC path to a URL, or having
a page in your site that does nothing but fetch and pass on files from
a specified location.
Re: Datagrid broken link
am 14.04.2008 14:53:54 von Mel
On Apr 12, 7:17 pm, Theo wrote:
> On Apr 11, 2:38 pm, Mel wrote:
>
>
>
> > 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\"
> >
> > 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">
> >
> >
> > DataTextField="Name"
> > HeaderText="File Name" />
> >
> >
> >
> >
> >
> > ForeColor="White" Font-Bold="True" />
> >
> > 'end of example code
>
> You need to convert the file name into something that the browser can
> resolve. That could mean converting the UNC path to a URL, or having
> a page in your site that does nothing but fetch and pass on files from
> a specified location.
Could you provide an example?
Re: Datagrid broken link
am 21.04.2008 19:44:42 von Mel
On Apr 14, 7:53 am, Mel wrote:
> On Apr 12, 7:17 pm, Theo wrote:
>
>
>
> > On Apr 11, 2:38 pm, Mel wrote:
>
> > > 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\"
> > >
> > > 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">
> > >
> > >
> > > DataTextField="Name"
> > > HeaderText="File Name" />
> > >
> > >
> > >
> > >
> > >
> > > ForeColor="White" Font-Bold="True" />
> > >
> > > 'end of example code
>
> > You need to convert the file name into something that the browser can
> > resolve. That could mean converting the UNC path to a URL, or having
> > a page in your site that does nothing but fetch and pass on files from
> > a specified location.
>
> Could you provide an example?