2012微软认证考试考前训练题5
09-11
0

QUESTION 1
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
You create a Web page to display photos and captions. The caption of each photo in the database can be modified by using the application.
You write the following code fragment.
 
 
’ runat="server"/> 
 


 
’ runat="server" /> 
 
 
 
When you access the Web page, the application throws an error.
You need to ensure that the application successfully updates each caption and stores it in the database.
What should you do?
 
A.Add the ID attribute to the Label control.
B.Add the ID attribute to the TextBox control.
C.Use the Bind function for the Label control instead of the Eval function.
D.Use the Eval function for the TextBox control instead of the Bind function.

Answer: B
 
QUESTION 2
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. 
The application contains two HTML pages named ErrorPage.htm and PageNotFound.htm.
You need to ensure that the following requirements are met:
When the userrequests a page that does not exist, the PageNotFound.htm page is displayed.
When any other error occurs, the ErrorPage.htm page is displayed.
Which section should you add to the Web.config file?
 
A.
B.
C.
D.

Answer: B 
 

相关内容

热门资讯

2014年微软认证:微软认证V... 2014年微软认证:微软认证Version:V2.38考试必备经典试题8
2014年微软认证:微软认证V... 2014年微软认证:微软认证Version:V2.38考试必备经典试题6
微软认证考试基于.NET的We... 微软认证考试基于.NET的Web应用程序开发模拟试题四
2014年微软认证:微软认证V... 2014年微软认证:微软认证Version:V2.38考试必备经典试题4
2014年微软认证:微软认证V... 2014年微软认证:微软认证Version:V2.38考试必备经典试题5
2014年微软认证:微软认证V... 2014年微软认证:微软认证Version:V2.38考试必备经典试题10
2014年微软认证:微软认证V... 2014年微软认证:微软认证Version:V2.38考试经典试题2
2014年微软认证:微软认证V... 2014年微软认证:微软认证Version:V2.38考试经典试题7
2012年微软认证考试备考模拟... 2012年微软认证考试备考模拟试题5
2014年微软认证:微软认证V... 2014年微软认证:微软认证Version:V2.38考试经典试题1