a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 159|回复: 0

[考试试题] 微软MCSD.NET70305考题(110)

[复制链接]
发表于 2012-8-3 00:09:22 | 显示全部楼层 |阅读模式
  1.You are creating an ASP.NET application for your company's intranet. Employees will use this application to schedule conference rooms for meetings. The scheduling page includes a Calendar control that employees can use to choose a date to reserve a room. The Calendar control is defined as follows:asp:calendar id=WorkDays runat=serverOnDayRender=WorkDays_DayRender/You want to display a message that reads Staff Meeting below every Friday displayed in the calendar. You also want to find all the weekdays for the current month displayed in the calendar and show them with a yellow highlight.You are writing code for the WorkDays.DayRender event handler to perform these tasks. You write the following code. (Line numbers are included for reference only.)1Sub WorkDays_DayRender(sender As Object, _ e As DayRenderEventArgs)23End SubWhich code should you add at line 2 of the event handler?A: If e.Day.Date.DayOfWeek = _DayOfWeek.Friday Thene.Cell.Controls.Add( _New LiteralControl(Staff Meeting))End IfIf Not e.Day.IsWeekend Thene.Cell.BackColor = _System.Drawing.Color.YellowEnd IfB: If e.Day.Date.Day = 6 _And e.Day.IsOtherMonth Thene.Cell.Controls.Add( _New LiteralControl(Staff Meeting))
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Woexam.Com ( 湘ICP备18023104号 )

GMT+8, 2024-5-7 01:22 , Processed in 0.244817 second(s), 21 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表