This is a migrated thread and some comments may be shown as answers.

Codding & Folder

4 Answers 60 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jean-Yves
Top achievements
Rank 1
Jean-Yves asked on 02 Dec 2010, 01:02 PM
Hello,

I'm on a small intranet website, and on my server I have a shared directory. But apparently I can't access it with every browser. Let me explain you.

So I access my directory without any problem with windows explorer. I just do: \\10.199.137.90\Affaires\ And it's perfect.

In my website, I have:
<a ID="lnkToClick" runat="server" target="_blank"> quality of the case file </ a>
and
protected void Page_Load (object sender, EventArgs e)
{
    lnkToClick.HRef = @ "\\\\10.199.137.90\Affaires\";
}


And it works on IE6, IE7, IE8, IE9. Yes, when I click on the link it launch my windows explorer and target the good directory.

But this doesn't work with Firefox, Google Chrome... etc etc... I have an error.

Do you have any ideas?

Thank you very much :))

Jean-Yves

4 Answers, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 03 Dec 2010, 05:02 PM
Hello Jean-Yves,

Check the permissions of your shared directory. If you try to open the directory, from the same computer, using IE, it is probably logging in with your credentials.
In the permissions of the directory set everyone to have read access.

Kind regards,
Vasil
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Jean-Yves
Top achievements
Rank 1
answered on 05 Dec 2010, 10:48 AM
Hello, 

I have already putten the access like you said. It's not a probleme of this.

On IE, it launch the windows explorer in the right folder.
On google Chrome or Firefox, when I click on the link it goes to something like : www.mypagewhereIwas.aspx/~/10.199.137.90/Affaires/ and of course this url is not working.

I think that it's because the interpretation of href="\\\\10.199.137.90\\Affaires\\"

How to solve this ??? That is the question :)
First what is the way for google chrome of firefox to launch windows explorer???

Thank you

Jean-Yves
0
Vasil
Telerik team
answered on 06 Dec 2010, 03:54 PM
Hello Jean-Yves,

If you use UNC path like:
\\10.199.137.90\Affaires
Your link must be like:
file://///10.199.137.90/Affaires


So you can use for example:
<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="file://///10.199.137.90/Affaires">HyperLink</asp:HyperLink>

This will be the valid link. But Firefox still will not want to open it when click on it (will work if you copy/paste it). This is due to security restrictions from the Firefox itself (the same is with Chrome). There are add-ons for opening such paths.
Firefox: https://addons.mozilla.org/en-US/firefox/addon/281/
Chrome: https://chrome.google.com/extensions/detail/jllpkdkcdjndhggodimiphkghogcpida

I hope this helps you.

Best wishes,
Vasil
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Jean-Yves
Top achievements
Rank 1
answered on 07 Dec 2010, 03:37 PM
Thank you very much!!!
It work perfectly :))
Tags
General Discussions
Asked by
Jean-Yves
Top achievements
Rank 1
Answers by
Vasil
Telerik team
Jean-Yves
Top achievements
Rank 1
Share this question
or