SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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 have a list that contains a lookup column.

Next, I created an empty .aspx page and added a dataview web part. Next, I linked the dataview web part to the previously mentioned list, which gave me the data source.

Now, if I add the lookup column from the data source into the web part on my page and format it as a label, I get a label that is a hyperlink going to the backend (The list). If I format it as a textbox or just plain text, interestingly i get the following anchor tag on my page just like this:

<a onclick="OpenPopUpPage('{8BEE076B-ABC8-4378-9CD4-93AD46064FC0}&ID=15&RootFolder=*', RefreshPage); return false;" href="{8BEE076B-ABC8-4378-9CD4-93AD46064FC0}&ID=15&RootFolder=*">Final Test</a>

I also tried throwing the {@Research_x0020_Topic} around into different html tags and asp controls, but I keep getting the above anchor on my page.

What I want is simple. I just want to display the value of the lookup column without it being a hyperlink. The closest I get is if i format it as a label:

<asp:Label runat="server" id="ff1{$Pos}" text="{@Research_x0020_Topic}" __designer:bind="{ddwrt:DataBind('u',concat('ff1',$Pos),'Text','','ID',ddwrt:EscapeDelims(string(@ID)),'@Research_x0020_Topic')}" />

I cannot, however, seem to figure out how to disable the hyperlink embedded in this label.

Any help?

share|improve this question
Actually, I have just thought of something. I'm going to try and put the lookup value into a parameter and put this parameter into the field. – Carel Nov 15 '12 at 12:33
up vote 1 down vote accepted

At the end the solution was quite simple. I just needed to add a column to the library that shows the value of the look-up as a data field by checking the following (Add a column to show each of these additional fields):

enter image description here

This creates a column in the library and the data source that acts like a normal single line of text field and not a look-up.

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.