070-573 무료 덤프문제 온라인 액세스
시험코드: | 070-573 |
시험이름: | TS: Office SharePoint Server, Application Development (available in 2010) |
인증사: | Microsoft |
무료 덤프 문항수: | 150 |
업로드 날짜: | 2025-08-21 |
You create a Feature receiver.
You need to hide the Quick Launch navigation bar of a SharePoint site.
What should you use?
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 deploy a custom Web Part named WebPart1 to a SharePoint site.
WebPart1 contains the following code segment. (Line numbers are included for reference only.)
01 protected void Page_Load(object sender, EventArgs e)02 {
03 04 05 06 07 08
SPSite site = null;try{ SPSite site = new SPSite("http://www.contoso.com/default.aspx");SPWeb web = site.OpenWeb();
09
...
10
11
}catch
12
13
{
14
15
16
17
}finally{
18
}
19 }
After you deploy WebPart1, users report that the pages on the site load slowly.
You retract WebPart1 from the site.
Users report that the pages on the site load without delay. You need to modify the code in WebPart1 to prevent the pages from loading slowly.
What should you do?
You create a modal dialog that displays a list of items. You need to capture the items selected by a user. Which code segment should you use?
You created a custom ASPX page that updates a list. The page is deployed to the _layouts folder.
The page contains the following code segment. (Line numbers are included for reference only.)
01 <form id="Form1" runat="Server"> 02 <asp:Button id="btnUpdate" runat="server" Text="Update"></asp:Button>03 </form>
A user attempts to update the list by using the page and receives the following error message: "The
security validation for this page is invalid".
You need to prevent the error from occurring.
Which control should you include in Form1?