Posts

IIS URL Rewrite – Hosting multiple domains under one site

http://weblogs.asp.net/owscott/archive/2010/01/26/iis-url-rewrite-hosting-multiple-domains-under-one-site.aspx

Some lesser-known truths about programming

http://archive.mises.org/13602/some-lesser-known-truths-about-programming/

User Profile Results Empty in SharePoint 2010: Configure Crawl and Search for User Profiles

Image
For the permission following the following steps: In Central Administration choose Application Management the Manage Service Applications Select the User Profile Service by tapping towards the right of the text Choose the Administrators button from the toolbar If you search account is not included go ahead and add it to the list Check the Retrieve People Data for Search Crawlers permission Click OK That should generally do it. You would then need to force a full crawl in order to confirm that the crawler now indexes all user profiles. Of course I’m assuming that you have already setup a Search Center in order to be able to test the People search functionality. In some cases this might not work if the default My Site is not part of the Local SharePoint Sites search source. In that case you need to add the “sps3://my” or “sps3://mysite” or whatever your My Site Host is named.

SharePoint Close methods for SP Long Operations and Redirect Error Page

Example 1 : protected override void OnClick(EventArgs e) { try{ using (SPLongOperation longOp = new SPLongOperation(this.Page)) { longOp.LeadingHTML = "Long Operation Title"; longOp.TrailingHTML = "This may take few seconds."; longOp.Begin(); //-------------------------- //code for long running operation is here //--------------------- EndOperation(longOp); } } catch (ThreadAbortException) { /* Thrown when redirected */} catch (Exception ex) { SPUtility.TransferToErrorPage(ex.ToString()); } } protected void EndOperation(SPLongOperation operation) { HttpContext context = HttpContext.Current; if (context.Request.QueryString["IsDlg"] != null) { context.Response.Write("<script type='text/javascript'>window.frameElement.commitPopup();</script>"); context.Response.Flush(); context.Response.End(); } else { string url = SPContext.Curre...

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;                 ...

ISO to USB

POWER ISO 4.8 or later Create Bootable USB Drive: Start PowerISO (v4.8 or newer version, download here). Insert the USB drive you intend to boot from. Choose the menu "Tools > Create Bootable USB Drive". The "Create Bootable USB Drive" dialog will popup. If you are using Windows Vista or Windows 7 / 8 operating system, you need confirm the UAC dialog to continue. In "Create Bootable USB Drive" dialog, click "..." button to open the iso file of Windows 7 or Windows 8. Select the correct USB drive from the "Destination USB Drive" list if multiple USB drives are connected to the computer. Choose the proper writing method. "USB-HDD" is recommended. Click "Start" button to start creating windows 7 / 8 bootable USB drive. * Cant create bootable usb drive POWER ISO   Try to format the usb to fat32. Then ran power iso in admin mode. Then used the create bootable usb tool. Chose the appropriate iso and ...