I am trying to get value of item field from the list. The field is a lookup field with integer value. When I am trying get the value it is coming like
9;#9 (shown below). But I need only
web.AllowUnsafeUpdates = true; SPList list = web.Lists["Project/Task Status Details"]; SPListItem item = properties.List.GetItemByIdSelectedFields(properties.ListItem.ID, "Project_x002f_Task_x0020_Status_"); int details = (int)item["Project_x002f_Task_x0020_Status_"];//Error here
How get only value of it? not with hash.