Free Microsoft 070-573 Exam Dumps Questions & Answers
| Exam Code/Number: | 070-573Join the discussion |
| Exam Name: | TS: Office SharePoint Server, Application Development (available in 2010) |
| Certification: | Microsoft |
| Free Question Number: | 150 |
| Publish Date: | Jul 30, 2026 |
| # of views: | 2193 |
|
|
|
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 Web.
You write the following code segment for the Web Part. (Line numbers are included for reference only.)
01 SPSite currentSite = new SPSite("http://intranet");
02
03 Label currentTitle = new Label();
04 currentTitle.Text = currentSite.RootWeb.Title;
You add the Web Part to a page in the root Web and receive the following error message: "Web Part Error: Unhandled exception was thrown by the sandboxed code wrapper's Execute method in the partial trust app domain: An unexpected error has occurred."
You need to prevent the error from occurring.
What should you do?
You have a SharePoint site. The current master page of the site is v4.master.
You create a custom master page named MyMasterPage.master.
You deploy the master page to /_catalogs/masterpage/.
You need to apply the custom master page to only the content pages of the site.
What should you do?
You need to create a custom Web Part that meets the following requirements:
Includes all of the functionalities of the Search Results Web Part
Includes additional filters based on the current user department What should you do?
You create a Web Part that takes three values from three text boxes and creates a new SharePoint site when you click a button named CreateNewSite.
The Web Part contains the following code segment.
protected void CreateNewSite_Click(object sender, EventArgs e)
{ SPSite site = SPContext.Current.Site;
SPWeb web = site.AllWebs.Add(SiteNameTextBox.Text, SiteTitleTextBox.Text,SiteDescriptionTextBox.Text, 0, SPWebTemplate.WebTemplateSTS, false, false);}
You test the Web Part and it works properly.
When another user attempts to use the Web Part to create a new site, he receives the following error message: "Error: Access Denied."
You need to ensure that users can use the Web Part to create new sites.
What should you do?