几道 ASP.NET 的认证题 求解
1.你已经创建了一个运行在客户端Web服务器上的应用程序。Web应用程序允许它的用户选择在线的杂志订阅。这些页中的一个包括一个HTML server Checkbox控件,当被选中时,在一个ListBox控件中显示一系列的产品。你已经设置Checkbox的AutoPostBack的属性值为true,所以当它被点击时列表框将立刻填充数据。大部分的用户报告这个应用程序运行正常,但有些用户报告当点击checkbox时列表框并没有产品的数据。当在一些用户的浏览器上点击checkbox时,下面哪一种情形将导致列表框栏不能更新? A.一些用户浏览器不支持版本4.0或更新的版本的HTML。
B.在一些用户的浏览界面上禁用脚本。
C.在一些用户的浏览器上禁用Cookies。
D.在一些用户的浏览器上禁用ActiveX control support。
2.You create a Microsoft application by using the Microsoft .NET Framework version。假设您通过 Microsoft .NET Framework 3.5 创建一个 应用程序。
You add an XmlDataSource control named XmlDataSource1 to the Web page. XmlDataSource1 is bound
to an XML document with the following structure.
你在Web页面添加了XmlDataSource的控件并命名为XmlDataSource1将起绑定到XML文档,XML文档有一下结构。
<?xml version="1.0" encoding="utf-8" ?>
<clients>
<client ID="1" Name="John Evans" />
<client ID="2" Name="Mike Miller"/>
...
</clients>
You also write the following code segment in the code-behind file of the Web page.
你也在后台的页面也写了以下代码段
protected void BulletedList1_Click(
?object sender, BulletedListEventArgs e) {
//...
}
You need to add a BulletedList control named BulletedList1 to the Web page that is bound to
XmlDataSource1.
Which code fragment should you use?
你需要在Web页面添加BulletedList控件且命名为BulletedList1并绑定到XmlDataSource1,你需要以下哪个代码段?
A. <asp:BulletedList ID="BulletedList1" runat="server"
DisplayMode="LinkButton" DataSource="XmlDataSource1"
DataTextField="Name" DataValueField="ID"
onclick="BulletedList1_Click">
</asp:BulletedList>
B. <asp:BulletedList ID="BulletedList1" runat="server"
DisplayMode="HyperLink" DataSourceID="XmlDataSource1"
DataTextField="Name" DataMember="ID"
onclick="BulletedList1_Click">
</asp:BulletedList>
C. <asp:BulletedList ID="BulletedList1" runat="server"
DisplayMode="LinkButton" DataSourceID="XmlDataSource1"
DataTextField="Name" DataValueField="ID"
onclick="BulletedList1_Click">
</asp:BulletedList>
D. <asp:BulletedList ID="BulletedList1" runat="server"
DisplayMode="HyperLink" DataSourceID="XmlDataSource1"
DataTextField="ID" DataValueField="Name"
onclick="BulletedList1_Click">
</asp:BulletedList>
3.You create a Microsoft application by using the Microsoft .NET Framework version
假设您通过 Microsoft .NET Framework 3.5 创建一个 应用程序。
You add an XmlDataSource control named XmlDataSource1 to the Web page. XmlDataSource1 is bound
to an XML document with the following structure.
你在Web页面添加XmlDataSource的控件且命名为XmlDataSource1,并且把XmlDataSource1绑定到XML文档,XML有以下结构。
<?xml version="1.0" encoding="utf-8" ?>
<clients>
<client ID="1" Name="John Evans" />
<client ID="2" Name="Mike Miller"/>
...
</clients>
You also write the following code segment in the code-behind file of the Web page.
你也在后台的Web网页中写了以下的代码段。
Protected Sub BulletedList1_Click(ByVal sender As _
?Object, ByVal e As BulletedListEventArgs)
'...
End Sub
You need to add a BulletedList control named BulletedList1 to the Web page that is bound to
XmlDataSource1.
Which code fragment should you use?
你需要在Web网页中添加BulletedList的控件且命名为BulletedList1,将其绑定到XmlDataSource1,你需要使用以下哪个代码段?
A. <asp:BulletedList ID="BulletedList1" runat="server"
DisplayMode="LinkButton" DataSource="XmlDataSource1"
DataTextField="Name" DataValueField="ID"
onclick="BulletedList1_Click">
</asp:BulletedList>
B. <asp:BulletedList ID="BulletedList1" runat="server"
DisplayMode="HyperLink" DataSourceID="XmlDataSource1"
DataTextField="Name" DataMember="ID"
onclick="BulletedList1_Click">
</asp:BulletedList>
C. <asp:BulletedList ID="BulletedList1" runat="server"
DisplayMode="LinkButton" DataSourceID="XmlDataSource1"
DataTextField="Name" DataValueField="ID"
onclick="BulletedList1_Click">
</asp:BulletedList>
D. <asp:BulletedList ID="BulletedList1" runat="server"
DisplayMode="HyperLink" DataSourceID="XmlDataSource1"
DataTextField="ID" DataValueField="Name"
onclick="BulletedList1_Click">
</asp:BulletedList>