PrepAway - Latest Free Exam Questions & Answers

Category: 70-573 (v.1)

Exam 70-573: TS: Microsoft SharePoint 2010, Application Development (update October 30th, 2015)

You need to ensure that the Products Web Part sends Productid to the ProductDetails Web Part

You plan to create two Web Parts named Products and ProductDetails. You create an interface
that contains the following code segment. Public interface Interface1 { String ProductId { get; } }
You need to ensure that the Products Web Part sends Productid to the ProductDetails Web Part.
You must achieve this goal by using the ASP.NET Web Part connection framework. What should
you do?

You need to resolve the error

You create a Web Part that contains the following logging code. (Line numbers are included for
reference only.) 01 SPWeb web = SPContext.Current.Web; 02 try 03 { 04 05 } 06 catch
(Exception ex) 07 { 08 09 System.Diagnostics.EventLog.WriteEntry(“WebPart Name”, (“Exception
Information: ” + ex.Message), EventLogEntryType.Error); 10 } You discover that line 09 causes an
error. You need to resolve the error. What should you do?

You need to ensure that all users can use the Web Part to update the description of the current site

You create a Web Part that programmatically updates the description of the current SharePoint
site. The Web Part contains the following code segment. (Line numbers are included for reference
only.) 01 SPSecurity.RunUithElevatedPrivileges (delegate() 02 { 03 SPSite currSite =
SPConcext.Current.Site ; 04 SPUeb currUeb = SPContext.Current.Ueb ; 05 using (SPSite eSite =
new SPSite ( currSite.ID ) ) 06 { 07 using (SPWeb eWeb = eSite.OpenUeb ( currUeb.ID ) ) 08 { 09
Web.AllowUnsafeUpdates = true; 10 currUeb.Description = “Test”; 11 currUeb.Update (); 12
eUeb.AllowUnsafeUpdates = false; 13 } 14 } 15 } 16 }; Users report that they receive an Access
Denied error message when they use the Web Part. You need to ensure that all users can use the
Web Part to update the description of the current site. What should you do?


Page 3 of 2412345...1020...Last »