SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to retrieve the Url and the Description of a Hyperlink column in SP 2010 for data processing.

In the current scenario the field holds a link to an employee website as the URL and the name of the employee as the Description.

My only idea at this time is to use the following regex


So for a value like http://spd2010/firstname.lastname, Firstname Lastname

I get URL http://spd2010/firstname.lastname1 and Description Firstname Lastname

Is there any other way? It would be nice to know a best practice of some sort for this.

share|improve this question
up vote 1 down vote accepted

SPFieldUrlValue is the class you are looking for.

This class exposes both the Url and the Description

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.