Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have a lookupfield which is containing an E-Mail Adress and want to have it inside an Tag. How is this Possible?

Like:

<a href="mailto:<SharePointWebControls:LookupField FieldName="b0d8fc62-4160-4a62-a594-ac4deb6f33ec" runat="server"></SharePointWebControls:LookupField>">E-Mail</a>
share|improve this question
add comment

1 Answer 1

up vote 3 down vote accepted

use a reference to the internal column name wrapped in curly braces

<a href="mailto:{@InternalColumnName}">Email</a>

The internal name is different from the display name. To find the internal name, navigate to your list settings page, then right click on the column name, scroll down through the complete url until you see "title=" and then copy and paste everything after that. Lookup columns inject underscores and percent symbols all over the place so they often don't match the display names.

share|improve this answer
    
Thank you, worked :D –  fr34kyn01535 Dec 15 '11 at 8:55
add comment

Your Answer

 
discard

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.