Welcome to weblogs.com.pk Sign in | Join | Help

Adeel bin Khalid

"When a Man's Education is Finished; He is finished"
MOSS: Working with SPFieldUrlValue

See the code below, how easy it is to set the URL field value :)

SPListItem myListItem = 'write the code to get the list item having a Link item attribute'
SPFieldUrlValue myLink = new SPFieldUrlValue();
myLink.Description = "Adeel's Blog"
myLink.Url = "http://www.weblogs.com.pk/abk"
myListItem["Name of the Link Attribute"] = myLink;
myListItem.Update();

Posted: Monday, September 01, 2008 5:50 PM by abk

Comments

No Comments

Leave a Comment

(required) 

(required) 

(optional)

(required) 

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS