If you work with SharePoint and SharePoint Designer to create your own pages to show fields, you probably want to do the same with lookup fields. But if you add a lookup field, you get a nasty code referencing to the item number included in the field. Luckily, in SharePoint Designer you have access to the code of the field:
<xsl:value-of select="@Fieldname." />
Just change that line to the following :
<xsl:value-of select="substring-after(@Fieldname, ';#')" />
What this code does is take a part of the text that is displayed there: It only takes the part after the ;# .