473,387 Members | 1,590 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,387 software developers and data experts.

Broken Link

Mel
My link does not work. I want to create a link to a file that exists
on a different server. The path to the file is this "\\Junebug\Groups
\90000003.pdf". My web server is "10.10.1.111". How do I get this
link to work?

When I hover over the link the path looks like this:
http://10.10.1.111/\\Juno\Groups\90000003.pdf
Jun 27 '08 #1
4 1349
For this you would need to use the FILE:/// moniker, not "Http://
--Peter
"Mel" <ML********@gmail.comwrote in message
news:f7**********************************@34g2000h sh.googlegroups.com...
My link does not work. I want to create a link to a file that exists
on a different server. The path to the file is this "\\Junebug\Groups
\90000003.pdf". My web server is "10.10.1.111". How do I get this
link to work?

When I hover over the link the path looks like this:
http://10.10.1.111/\\Juno\Groups\90000003.pdf
Jun 27 '08 #2
Mel
On Jun 11, 7:31 pm, "Peter Bromberg [C# MVP]"
<pbromb...@nospammaam.yahoo.comwrote:
For this you would need to use the FILE:/// moniker, not "Http://
--Peter"Mel" <MLights...@gmail.comwrote in message

news:f7**********************************@34g2000h sh.googlegroups.com...
My link does not work. I want to create a link to a file that exists
on a different server. The path to the file is this "\\Junebug\Groups
\90000003.pdf". My web server is "10.10.1.111". How do I get this
link to work?
When I hover over the link the path looks like this:
http://10.10.1.111/\\Juno\Groups\90000003.pdf
Okay thanks. I had the IT guy create a virtual directory on the
server. Your idea is better though, I'll check it out.
Jun 27 '08 #3
Mel
On Jun 11, 7:31 pm, "Peter Bromberg [C# MVP]"
<pbromb...@nospammaam.yahoo.comwrote:
For this you would need to use the FILE:/// moniker, not "Http://
--Peter"Mel" <MLights...@gmail.comwrote in message

news:f7**********************************@34g2000h sh.googlegroups.com...
My link does not work. I want to create a link to a file that exists
on a different server. The path to the file is this "\\Junebug\Groups
\90000003.pdf". My web server is "10.10.1.111". How do I get this
link to work?
When I hover over the link the path looks like this:
http://10.10.1.111/\\Juno\Groups\90000003.pdf
Okay so I created my virtual directory. Why doesn't DirectoryInfo
work (see code below)? The "Quote-Docs" is my new virtual directory
on my web server. I get an error that it could not find part of the
path and it is trying to query the C:\ drive.

If e.CommandName = "Quote #" Then
Dim currentCommand As String = e.CommandName
Dim currentRowIndex As Integer =
Int32.Parse(e.CommandArgument)
Dim strQuoteNum As String =
gvQuotes.DataKeys(currentRowIndex).Value

Dim myDir As DirectoryInfo = New DirectoryInfo("~\Quote-
Docs\" & strQuoteNum)
dgQuote.DataSource = myDir.GetFiles("*.pdf")
dgQuote.DataBind()
End If
Jun 27 '08 #4
Mel
On Jun 12, 3:52 pm, Mel <MLights...@gmail.comwrote:
On Jun 11, 7:31 pm, "Peter Bromberg [C# MVP]"

<pbromb...@nospammaam.yahoo.comwrote:
For this you would need to use the FILE:/// moniker, not "Http://
--Peter"Mel" <MLights...@gmail.comwrote in message
news:f7**********************************@34g2000h sh.googlegroups.com...
My link does not work. I want to create a link to a file that exists
on a different server. The path to the file is this "\\Junebug\Groups
\90000003.pdf". My web server is "10.10.1.111". How do I get this
link to work?
When I hover over the link the path looks like this:
>http://10.10.1.111/\\Juno\Groups\90000003.pdf

Okay so I created my virtual directory. Why doesn't DirectoryInfo
work (see code below)? The "Quote-Docs" is my new virtual directory
on my web server. I get an error that it could not find part of the
path and it is trying to query the C:\ drive.

If e.CommandName = "Quote #" Then
Dim currentCommand As String = e.CommandName
Dim currentRowIndex As Integer =
Int32.Parse(e.CommandArgument)
Dim strQuoteNum As String =
gvQuotes.DataKeys(currentRowIndex).Value

Dim myDir As DirectoryInfo = New DirectoryInfo("~\Quote-
Docs\" & strQuoteNum)
dgQuote.DataSource = myDir.GetFiles("*.pdf")
dgQuote.DataBind()
End If
I got it. I just wrapped the path with Server.MapPath.
Jun 27 '08 #5

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

Similar topics

2
by: Danny | last post by:
Anyone knows how to detect broken link using ASP? Just say the link is got from query string, ie: http://www.mydomain.com/check_validity_link.asp?www.otherdomain.com/1.htm TIA.
1
by: | last post by:
I am planning to develop a directory website (ASP.NET) which will contain links to hundreds of external web pages. In an effort to keep the directory up to date, I would like to trap (perhaps as an...
0
by: Martin Atukunda | last post by:
On this page: http://techdocs.postgresql.org/techdocs/ this section: Development the link: http://techdocs.postgresql.org/redir.php?link=http://www.postgresql.org/docs/momjian/writing_apps...
28
by: Craig Cockburn | last post by:
I have a tool which tells me the number of times that visitors attempt to access a link from my site to an external site and what the response code received was. In the event of the remote site...
2
by: vbgunz | last post by:
Hello! this is the main error: http://img406.imageshack.us/img406/5218/screenshotxchmerror1ae.png navigation link images broken here:...
3
by: Giampaolo Rodola' | last post by:
Hi there, I would like to know if such function would be correct for verifying if a link is broken and/or circular. def isvalidlink(path): assert os.path.islink(path) try: os.stat(path)...
0
by: John Dalberg | last post by:
Every link on the web I tested to download the C# snippets links to page on MS's which is broken. Anyone knows a download link which work? Broken page: ...
4
by: rando1000 | last post by:
I'm sending some automated e-mails through CDO.message. There is a text string being passed as a link in the message. It's a lengthy string, and when viewed in Outlook Express, the link becomes...
8
by: punk86 | last post by:
Hi, i been working on this codes but i keep getting broken links for the pictures. Im using apache. Need help for this please. I think its just the codes in my index.php is wrong and i do not know...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.