070-528 무료 덤프문제 온라인 액세스
시험코드: | 070-528 |
시험이름: | TS: Microsoft .NET Framework 2.0 - Web-based Client Development |
인증사: | Microsoft |
무료 덤프 문항수: | 149 |
업로드 날짜: | 2025-08-27 |
You are debugging an internal Web application. All requests to a particular Web page result in the display of the custom application error page.
You need to ensure that you can view the stack trace in the Web browser. You also need to ensure that users cannot view the stack trace.
Which code fragment should you add to the Web.config file of the Web application?
You are developing a custom composite control that dynamically displays a number of child controls.
You write the following code segment. (Line numbers are included for reference only.)
01 Protected Overloads Overrides Sub CreateChildControls()
02 If Not IsPostBack Then
03 Dim txtA As New TextBox()
05 Controls.Add(txtA)
06 End If
07 If IsPostBack Then
08 Dim txtB As New TextBox()
10 Controls.Add(txtB)
11 End If
12 End Sub
Currently, the value of txtA is displayed in txtB on a postback.
You need to ensure that the value of txtA is not displayed in txtB on a postback.
What should you do?
You are developing a Microsoft ASP.NET application.
You add a templated Web user control to a Web Form by using the following code fragment.
<uc1:MyControl ID="MyControl1" runat="server">
<HeaderTemplate>
<asp:Label ID="HeaderLabel" runat="server" />
</HeaderTemplate>
<BodyTemplate>
<asp:TextBox ID="TemplateTextBox" runat="server" />
</BodyTemplate>
</uc1:MyControl>
You write the following code segment in the Web Form's code-behind file. (Line numbers are included for reference only.)
02 Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) 04 End Sub
You need to modify the Visible property of the TemplateTextBox control from the Web Form's code-behind file as false.
What should you do?
You create a master page named Parent.master that contains a global header for your Web application.
You add a ContentPlaceHolder to Parent.master by using the following code segment.
<asp:ContentPlaceHolder ID="pagebody" runat="server" />
You also create a content page named Article.aspx by using the following code segment.
<%@ Page Language="C#" MasterPageFile="~/navigation.master"%>
<asp:Content ContentPlaceHolderID="article" Runat="Server">
Article content to go here
</asp:Content>
You need to create a child master page that contains the navigation for each section.
The users must be able to see the header, the navigation, and the article when they view the page, as
shown in the exhibit.
Which code segment should you use?