Thursday, May 6, 2010

Sharepoint 7 - Retrieve URL from SPListItem

Use the following:

SPFieldUrlValue fieldValue=new SPFieldUrlValue(myItem["URL"].ToString());
string LinkDescription=fieldValue.Description;
string LinkUrl=field.Url;

No comments: