Microsoft TS: Microsoft .NET Framework 2.0 - Web-based Client Development - 70-528 FREE EXAM DUMPS QUESTIONS & ANSWERS
You are creating a Microsoft ASP.NET Web application that allows users to choose a stylesheet theme for a Web page.
The application contains a combo box that is defined by the following code fragment.
<asp:DropDownList ID="cmbThemes" runat="server"> <asp:ListItem Text="Blue" Value="BlueTheme"/> <asp:ListItem Text="Red" Value="RedTheme"/> <asp:ListItem Text="Green" Value="GreenTheme"/> </asp:DropDownList>
You need to apply a stylesheet theme to a Web page when a user selects a theme from the combo box.
Which code segment should you add to the code file of the Web page?
The application contains a combo box that is defined by the following code fragment.
<asp:DropDownList ID="cmbThemes" runat="server"> <asp:ListItem Text="Blue" Value="BlueTheme"/> <asp:ListItem Text="Red" Value="RedTheme"/> <asp:ListItem Text="Green" Value="GreenTheme"/> </asp:DropDownList>
You need to apply a stylesheet theme to a Web page when a user selects a theme from the combo box.
Which code segment should you add to the code file of the Web page?
Correct Answer: D
Vote an answer
You are developing a Web application.
The home page of the application is named Default.aspx. The home page is regularly updated.
You need to ensure that you can precompile and deploy the application. You also need to ensure that
Default.aspx can be modified without recompiling the application.
What should you do?
The home page of the application is named Default.aspx. The home page is regularly updated.
You need to ensure that you can precompile and deploy the application. You also need to ensure that
Default.aspx can be modified without recompiling the application.
What should you do?
Correct Answer: A
Vote an answer
You are creating a Microsoft ASP.NET Web application that allows customers to transfer money between their bank accounts.
You write the following code segment. (Line numbers are included for reference only.)
01 using (SqlConnection cn = new SqlConnection())
02 {
03 cn.ConnectionString = strConnString;
04 cn.Open();
05 using (SqlTransaction tran = cn.BeginTransaction())
06 {
07 try
08 {
10 }
11 catch (Exception xcp)
12 {
13 lblMessage.Text = xcp.Message;
14 tran.Rollback();
15 }
16 }
17 }
You need to ensure that the transfer operation executes within a transaction.
Which code segment should you insert at line 09?
You write the following code segment. (Line numbers are included for reference only.)
01 using (SqlConnection cn = new SqlConnection())
02 {
03 cn.ConnectionString = strConnString;
04 cn.Open();
05 using (SqlTransaction tran = cn.BeginTransaction())
06 {
07 try
08 {
10 }
11 catch (Exception xcp)
12 {
13 lblMessage.Text = xcp.Message;
14 tran.Rollback();
15 }
16 }
17 }
You need to ensure that the transfer operation executes within a transaction.
Which code segment should you insert at line 09?
Correct Answer: D
Vote an answer
You are designing a Web application by using Microsoft ASP.NET .
You add a master page and content pages to the application. The master page contains a Label control named lblTitle.
You need to reference lblTitle from the code within the content pages.
Which code segment should you use?
You add a master page and content pages to the application. The master page contains a Label control named lblTitle.
You need to reference lblTitle from the code within the content pages.
Which code segment should you use?
Correct Answer: D
Vote an answer
You create Web sites for your company. You apply a consistent design to the pages and controls of the Web sites.
You need to make style changes to all of the Web sites on the Web server. You want to achieve this goal without having to edit the individual pages on each Web site.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
You need to make style changes to all of the Web sites on the Web server. You want to achieve this goal without having to edit the individual pages on each Web site.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
Correct Answer: A,C
Vote an answer
You are developing a Microsoft ASP.NET Web site.
You add a user control named WebUserControl1 to a Web Form. The control is defined in the same Web
site project.
After adding the markup for the control to the Web Form, you receive the following error message:
"Unknown server tag: 'uc1:WebUserControl1'"
You need to resolve the error.
What should you do?
You add a user control named WebUserControl1 to a Web Form. The control is defined in the same Web
site project.
After adding the markup for the control to the Web Form, you receive the following error message:
"Unknown server tag: 'uc1:WebUserControl1'"
You need to resolve the error.
What should you do?
Correct Answer: B
Vote an answer
You create a Microsoft ASP.NET Web application. The application is accessed both from desktop Web browsers and from mobile device Web browsers.
You develop a custom control. In mobile device browsers, the custom control must contain only a subset of the data displayed in the desktop browser.
You need to ensure that the application renders correctly for both desktop browsers and mobile device browsers.
What should you do?
You develop a custom control. In mobile device browsers, the custom control must contain only a subset of the data displayed in the desktop browser.
You need to ensure that the application renders correctly for both desktop browsers and mobile device browsers.
What should you do?
Correct Answer: C
Vote an answer