Vb.Net - Create Hyperlink to Document on Server

Good Day Experts!

I am interested in creating a hyperlink, to a file that resides on a server, and then emailing it.  Currently I do have the emailing working from my VB.Net 2005 project.  However, I am not sure I turn the path of a file on the server into a hyperlink.

Do you have any reference suggestions I can take a look at?

Thanks,
jimbo99999
Jimbo99999Asked:
Who is Participating?
 
Bob LearnedConnect With a Mentor Commented:
You would need to create an anchor tag like this example:

Dim link As String = "<a href=""http://localhost:" & partUrl & "/test.aspx?autoNum=" & autoNum & """>Click here</a>" 

Open in new window

0
 
Bob LearnedCommented:
When you send the E-Mail, are the users going to have access to the server?  

Are you using an IP address or host name for the server?

Does the server have a shared folder?
0
 
Jimbo99999Author Commented:
Hello...thanks for responding.  Currently I am generating the report manually, building the link in outlook and then emailing.  The user then clicks on it and the report opens.  

I am trying trying to strealine/automate this process.  I have the report being generated in my vb.net project.  I have the excel ss saving out to the server.  I have the email being sent to the user.  My missing piece is creating the link to include in the email!

What do you think, can it be done?

Thanks,
Jimbo99999
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
Bob LearnedCommented:
That sounds like a good case for generating a hyperlink.  The file would need to be publicly available.  How are you generating the E-Mail?

Examples:

http://10.45.56.420/FileServer/Attachment/File001.txt
http://www.contoso.com/public/attachments/File001.txt
0
 
Jimbo99999Author Commented:
Good Morning

We are using the ARCLABEMAILTOOLBOXLib.Mailer.  

I will take a look at your links.  Thank you for taking the time to respond and help out.

jimbo99999
0
 
Jimbo99999Author Commented:
I cannot get the links to work.  Can you help out?

Thanks,
jimbo99999
0
 
Bob LearnedCommented:
Can you show me what you came up with?

What is the issue with the links?
0
 
Jimbo99999Author Commented:
Good Day

The first link says "Server not found" and the second one sends me to a Microsoft website.

Thanks for helping,
jimbo99999
0
 
Bob LearnedCommented:
Those were only examples of what you could generated.  You would need to use the IP address or host name for the server that you are working with.
0
 
Jimbo99999Author Commented:
Thanks...I understand now that you were showing examples.

But, what I don't know how to do in VB.Net is make a string a clickable link to put into my email.
0
 
Jimbo99999Author Commented:
Thanks for replying I will try this out tomorrow.

Thanks,
jimbo99999
0
 
Jimbo99999Author Commented:
Thanks for the help Bob Learned...it is working now!

Have a good day,
jimbo99999
0
All Courses

From novice to tech pro — start learning today.