Posts

Showing posts from September 8, 2013

Bind dropdownlist to enum

public static ListItemCollection GetListItemsFromEnum ( Type enumType ) { ListItemCollection items = new ListItemCollection (); string [] names = Enum . GetNames ( enumType ); Array values = Enum . GetValues ( enumType ); for ( int i = 0 ; i <= names . Length - 1 ; i ++) { items . Add ( new ListItem ( names [ i ], values . GetValue ( i ). ToString ())); } return items ; }

SharePoint Add/Send Appointment Using Exchange Web Services (EWS)

Add Web Service  : https://domain/ews/services.wsdl try             {                 SPSecurity .RunWithElevatedPrivileges( delegate ()                 {                     EWS. ExchangeServiceBinding esb = new ExchangeServiceBinding ();                     esb.RequestServerVersionValue = new RequestServerVersion ();                     esb.RequestServerVersionValue.Version = ExchangeVersionType .Exchange2010_SP1;                 ...