在复习微软的过程中中还是不够全面,为了帮助广大考生系统全面的复习好《微软认证学科》,我们考吧网整理了微软认证模拟试题,本次汇编的模拟试题希望对你的考试有所帮助,预祝你考试顺利。
编辑推荐:2013年微软认证:微软认证考试必备经典试题汇总三
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. The application has a mobile Web form that contains the following ObjectList control.
You create an event handler named ObjectListCtrl_ItemCommand.
You need to ensure that the ObjectListCtrl_ItemCommand handler detects the selection of the CmdDisplayDetails item.
Which code segment should you write?
A.public void ObjectListCtrl_ItemCommand( object sender, ObjectListCommandEventArgs e) {
if (e.CommandName == "CmdDisplayDetails") {
} }
B.public void ObjectListCtrl_ItemCommand( object sender, ObjectListCommandEventArgs e) {
if (e.CommandArgument.ToString() == "CmdDisplayDetails") {
} }
C.public void ObjectListCtrl_ItemCommand( object sender, ObjectListCommandEventArgs e) {
ObjectListCommand cmd = sender as ObjectListCommand;
if (cmd.Name == "CmdDisplayDetails") {
} }
D.public void ObjectListCtrl_ItemCommand( object sender, ObjectListCommandEventArgs e) {
ObjectListCommand cmd = e.CommandSource as ObjectListCommand;
if (cmd.Name == "CmdDisplayDetails") {
} }
Answer: A