You have a Web page named ShowMessage.aspx. You create a new Web page. You need to display the content from ShowMessage.aspx in an IFRAME on the new Web page. You must achieve this goal by using the minimum amount of…

You have a SharePoint site collection. The root Web of the site collection has the URL http://intranet. You plan to create a user solution that will contain a Web Part. The Web Part will display the title of the root…

You are creating a Web Part for SharePoint Server 2010. The Web Part contains the following code segment. (Line numbers are included for reference only.) You need to identify which line of code prevents the Web Part from being deployed…

You create an event receiver. The ItemAdded method for the event receiver contains the following code segment. (Line numbers are included for reference only.) You need to prevent the event receiver from causing memory leaks. Which object should you dispose…

You create a console application to manage Personal Sites. The application contains the following code segment. (Line numbers are included for reference only.) You deploy the application to a SharePoint site. After deploying the application, users report that the site…

You have a Web Part that contains the following code segment. (Line numbers are included for reference only.) You deploy the Web Part to a SharePoint site. After you deploy the Web Part, users report that the site loads slowly.…

You have a Web application that contains the following code segment. You need to prevent the code segment from causing a memory leak. Which code segment should you add? A. B. C. siteCollection = null; D. siteCollection.WriteLocked = false;

You deploy a custom Web Part named WebPart1 to a SharePoint site. WebPart1 contains the following code segment. (Line numbers are included for reference only.) After you deploy WebPart1, users report that the pages on the site load slowly. You…