I am trying to populate SiteUrl field in itemAdded event, this code doesn't give me error but field is not get populated
public override void ItemAdded(SPItemEventProperties properties)
{
string projectType = properties.ListItem["ProjectTypes"].ToString().Replace(" ", "");
string webUrl = properties.ListItem["ProjectUrl"].ToString();
string webTitle = properties.ListItem["Title"].ToString();
SPFieldUrlValue field = new SPFieldUrlValue();
field.Description = "Details";
field.Url = "/Sites/SiteDemo/" + projectType + "/" + webUrl;
properties.ListItem["SiteUrl"] = field; // field value not populated
base.ItemAdded(properties); }