Tengo un campo que se genera en el Schema.xml de la lista de esta manera.

<Field ID="xxxxx" Name="xxxxx" DisplayName="xxxx" Type="Link" RichText="TRUE" RichTextMode="ThemeHtml" Required="TRUE" />

Por código necesito saber como obtener el valor pero solo el enlace, ya que este valor no solo devuelve el enlace.


I have a field that is generated in the Schema.xml list this way (see above)

Using code I want to retrieve only the link, as my current attempts are returning more than just the link.

  • Just to clarify, this is an English speaking site where questions (and answer) should be posted in English – Robert Lindgren Sep 11 '14 at 19:57
  • is not permitted questions in spanish or other language? – Andres Williams Sep 11 '14 at 21:50
  • No it is not, for the most part of the members to understand all questions here (and also so that the moderators can moderate all questions), all questions should be asked in English – Robert Lindgren Sep 12 '14 at 5:01

In this link you will find the solution,



Here is the solution


public static string ParserLinkField(SPListItem item)
    LinkFieldValue currentFieldValue = item["NombreItem"] as LinkFieldValue;
    if (currentFieldValue != null)
        return currentFieldValue.NavigateUrl;
        return string.Empty;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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