Popular Posts
javax.net.ssl.SSLHandshakeException: Connection closed by peer in Android 5.0 Lollipop Recently, there is a error occurs when access website via ssl connection like below although it worked fine several days ago. // Enable SSL... no object DCH for MIME type multipart/mixed Caused by: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/related; boundary="----=_Part_0_90429... LogonUser Function : impersonate a windows user // This sample demonstrates the use of the WindowsIdentity class to impersonate a user. // IMPORTANT NOTES:  // This sample can be run only ...
Stats
Get SPUser from Pserson or Group Column
SPUser GetSPUser(SPField field, object value)
{
 SPFieldUser userField = field as SPFieldUser;
 if (userField == null) return null;
 SPFieldUserValue fieldValue = userField.GetFieldValue(value as string) as SPFieldUserValue;
 if (fieldValue == null) return null;
 SPUser user = fieldValue.User;
 return user;
}