473,320 Members | 2,097 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Hyperlink to an FTP file

I'm using ASP.NET 1.1.
I have a DataGrid in which I have a hyperlink column. The NavigateUrl of the
hyperlink is an ftp file on the form "ftp://IP Address/fileName". When I
click the hyperlink the following error page appears:

The resource requested could not be accessed. The following response
received from the FTP server may contain an explanation.
USER anonymous 331 Password required for anonymous. PASS (password hidden for your protection)

530 User anonymous cannot log in.

Is it correct to view an ftp file using this way or should I map this ftp
path into a virtual path? If it is correct to open the ftp file directly, how
can I supply the username and the password "I'm using script window.open() to
open the file in a new window"?

Thanks in advance,
Shehab.
Feb 28 '06 #1
2 5217
What browser are you using? Internet Explorer will supply an anonymous
password. Otherwise, you'll have to handle the linking on the server side
with an FtpWebRequest (if you have .Net 2.0).

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
A brute awe as you,
a Metallic hag entity, eat us.
"Shehab Kamal" <Sh*********@discussions.microsoft.com> wrote in message
news:33**********************************@microsof t.com...
I'm using ASP.NET 1.1.
I have a DataGrid in which I have a hyperlink column. The NavigateUrl of
the
hyperlink is an ftp file on the form "ftp://IP Address/fileName". When I
click the hyperlink the following error page appears:

The resource requested could not be accessed. The following response
received from the FTP server may contain an explanation.
USER anonymous 331 Password required for anonymous. PASS (password hidden for your protection)

530 User anonymous cannot log in.

Is it correct to view an ftp file using this way or should I map this ftp
path into a virtual path? If it is correct to open the ftp file directly,
how
can I supply the username and the password "I'm using script window.open()
to
open the file in a new window"?

Thanks in advance,
Shehab.

Feb 28 '06 #2
Thanks for the reply.
I'm using Internet Explorer 6.
Here is the syntax of the HyperLinkColumn:
<asp:HyperLinkColumn
DataNavigateUrlField="Path"
DataNavigateUrlFormatString="javascript:var w=window.open('{0}','','');"
DataTextField="Name"
HeaderText="PDF/DJVU">
</asp:HyperLinkColumn>
I am sure that the "Path" is a valid file
"ftp://172.16.0.29/dlp/path/fileName.pdf".
However when I try to logon to the server using "Run -> ftp://172.16.0.29/".
The following message appears:
Either the server doesn't allow anonymous logins or the e-mail address aws
not accepted.
So my question is if I do have a username and a password how to pass them as
parameters while trying to open the file?
Thanks in advance,
Shehab.

"Kevin Spencer" wrote:
What browser are you using? Internet Explorer will supply an anonymous
password. Otherwise, you'll have to handle the linking on the server side
with an FtpWebRequest (if you have .Net 2.0).

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
A brute awe as you,
a Metallic hag entity, eat us.
"Shehab Kamal" <Sh*********@discussions.microsoft.com> wrote in message
news:33**********************************@microsof t.com...
I'm using ASP.NET 1.1.
I have a DataGrid in which I have a hyperlink column. The NavigateUrl of
the
hyperlink is an ftp file on the form "ftp://IP Address/fileName". When I
click the hyperlink the following error page appears:

The resource requested could not be accessed. The following response
received from the FTP server may contain an explanation.
> USER anonymous

331 Password required for anonymous.
> PASS (password hidden for your protection)

530 User anonymous cannot log in.

Is it correct to view an ftp file using this way or should I map this ftp
path into a virtual path? If it is correct to open the ftp file directly,
how
can I supply the username and the password "I'm using script window.open()
to
open the file in a new window"?

Thanks in advance,
Shehab.


Mar 1 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: laura | last post by:
I am writing an intranet and want to be able to hyperlink to all files within a specific folder AND it's subfolders. Whilst I can hyperlink to the files in the specified folder AND I can also...
4
by: Marco Krechting | last post by:
Hi All, Sorry but I have to create new message since it cannot find the old message to send a reply. Coming back to this hyperlink thing I will try to explain the real problem cause I think we...
3
by: Ray | last post by:
I recently upgraded from Access 97 to Access 2003 and just enter some new data into table via an input form. The form has one hyperlink field to contain a file path. In Access 2003, it appears...
5
by: JerryK | last post by:
Hi, I am trying to put a hyperlink to a .cer (certificate) file on a form. Normally (on a ,htm page) when the user clicks on the hyperlink, the file is not recognized and the user is given the...
4
by: Satya | last post by:
Hi all, The following code is throwing a run time error "The server tag is not well formed. " <ItemTemplate> <asp:HyperLink Runat="server" ID="lnkFile"...
2
by: SAL | last post by:
I would like to create a VB.net function, that builds a dynamic hyperlink using System.Web.UI.WebControls.HyperLink, but I can not find any examples on how to generate a dynamic hyperlink. Has...
10
by: David Thielen | last post by:
Hi; I have help html pages for each page of my ASP.NET webapp. So for the page datasource.aspx, I have help\datasource.htm. Bu what I want when the hyperlink is clicked, for it to look for the...
20
by: tshad | last post by:
I had posted this problem earlier and just noticed that the Hyperlink is the problem. Apparently, it doesn't figure out the path correctly. It uses the path of the file it is in, even if it is...
13
ADezii
by: ADezii | last post by:
Recently, there have been several questions and much confusion concerning the Topic of Hyperlinks. Specifically, Users wanted to know how to retrieve a File Name from a FileDialog Box, copy the Name...
5
LAD
by: LAD | last post by:
Using Access 2003 on Windows 2000. My Skill Level: Med Low (Some VBA, okay with Access) Form: Single View - based on Query of single Table to sort by field. Application: Dealers email 'contract...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.