namics SharePoint Weblog
Mit Windows SharePoint Services (WSS v3) und Microsoft Office SharePoint Server 2007 (MOSS 2007) zur professionellen eCollaboration Plattform
namics @ www.flickr.com

LINKS

  • namics Weblog
  • about:namics
  • namics Website

AKTUELLE ARTIKEL

  • MOSS 2007 auf SQL 2008 installieren
  • Sharepoint an der worldwide Partner Conference von Microsoft, 7. – 10. Juli 2008
  • Team Mika certified - MCTS Welcome Package
  • Aus gegebenem Anlass...
  • SharePoint Infrastructure Updates - Nachtrag
  • SharePoint Infrastructure Updates - Installation
  • SharePoint Infrastructure Updates
  • namics Fachtagung: Produktivitätssteigerung mit MOSS 2007
  • Windows Server 2008 Hyper-V RTM
  • MOSS, RichLinkSelector and some magic

KATEGORIEN

  • Business Intelligence
  • Document Management
  • Kollaboration
  • MOSS 2007
    • Berechtigungen
  • Microsoft Community
  • Office 2007
  • Silverlight
  • Tools und Applikationen
  • Virtualization
  • Visual Studio
  • Web Content Management
  • Windows Live
  • Windows Server 2008
  • Windows SharePoint Services v3
  • Workflow

ARCHIVE

  • August 2008
  • Juli 2008
  • Juni 2008
  • Mai 2008
  • April 2008
  • Februar 2008
  • November 2007
  • Oktober 2007
  • September 2007
  • Juni 2007
  • Mai 2007
  • April 2007
  • März 2007
  • Februar 2007
  • Januar 2007
  • Dezember 2006
  • November 2006
  • Oktober 2006
  • September 2006
  • August 2006

XML UND MUMBO JUMBO

  • Subscribe with Bloglines
  • Add to My Yahoo!
  • Add to Google
  • Atom Feed
  • RSS 2.0 Feed
  • Creative Commons License
    Dieses Weblog untersteht der Creative Commons Lizenz.
  • Powered by Movable Type 3.35
« iGoogle Gadget in einem WebPart | Übersicht | Windows Server 2008 Hyper-V RTM »
10
Jun
MOSS, RichLinkSelector and some magic
gepostet von Andreas Glaser am 10.06.2008 um 10:38

The "Microsoft.SharePoint.Publishing" namespace offers a lot of controls to use in your page. One of them is the RichLinkSelector. You can use it to browse a site, list or document and to create a link to that object. The link can be stored in a column as meta data. The RichLinkSelector has a property named Value you can use to access the selected link:

RichLinkSelector mLinkSelector = new RichLinkSelector();

HtmlTagValue htmlTagValue = mLinkSelector.Value;


So where is the magic? In order to access e.g. the navigate URL or the tool tip you have to create a LinkFieldValue object from the HtmlTagValue:

LinkFieldValue link = new LinkFieldValue(mLinkSelector.Value.ToString());


The LinkFieldValue offers you the following properties with get and set:

link.Text

link.NavigateUrl

link.Target

link.ToolTip

If you want to fill the control with an existing link you can set the properties of the link object and assign it to the mLinkSelector.Value:

mLinkSelector.Value = link;


That's it.


TRACKBACK

TrackBack URL for this entry:
http://blog.namics.com/mt/mt-tb.cgi/1152

KOMMENTAR SCHREIBEN

Name:

E-Mail Adresse:

URL:

Bitte das Ergebnis von 1 + 2 als Ziffer (Spamschutz):