题目
A. 设置Web窗体上验证控件的Enabled 属性为False。
B. 设置btnCancel 按钮的CausesValidation 属性为False.
C. 设置btnCancel 按钮的CausesValidation 属性为True.
D. 设置Web窗体上验证控件的Visible 属性为False。
第1题
A.增加一个CompareValidator控件到Web窗体。设置它的ControlToValidate属性值为txtDate; 设置它的Type属性值为Date;设置它的Operator属性值为DataTypeCheck。
B. 增加一个RangeValidator控件到Web窗体。设置它的ControlToValidate属性值为txtDate;设 置它的Type属性值为Date;设置它的MinimumValue属性值为01/01/1900;MaximumValue 属性值为当前日期。
C. 增加一个CustomValidator控件到Web窗体。设置它的ControlToValidate属性值为txtDate; 然后在partial 类写一个返回Boolean值的日期验证方法。然后设置ClientValidationFunction 属性值为刚才方法的名称。
D. 增加一个RegularExpressionValidator控件到Web窗体。设置它的ControlToValidate属性值为 txtDate;设置ValidationExpression属性值为验证用户输入数据格式为nn-nn-nnnn的正则表 达式,其中n代表从0到9的数字。
第2题
A.
B.
C.
D.
第3题
A. 在Web.config 文件增加配置节 <globalization culture=”Auto” />
B. 为站点的每个页面设置: <%@ Page UICulture=”Auto” %>
C. 在页面的pages load event增加如下的代码段;
D. 在页面的pages load event增加如下的代码段:
第4题
A. 在code-behind 文件增加一个方法isColor 。确保这个方法返回一个Boolean 值、MobileCapabilities类的实例和一个字符串。
B. 在code-behind 文件增加一个方法isColor 。确保它使用了MobileCapabilities 类并返回一个要显示的图像的URL字符串。
C. 在image控件的定义标记之间增加如下的代码段:<DeviceSpecific> <Choice Filter="isColor" ImageURL="logo-color.gif" /></DeviceSpecific>
D. 在Web.config文件中为deviceFilters元素增加如下的节点<filter name="isColor" compare="IsColor" argument="true" />
第5题
A. 增加一个SiteMapDataSource控件到Web窗体,并且绑定到TreeView 控件。
B. 增加一个SiteMapPath控件到Web窗体,并且绑定到TreeView控件。
C. 嵌入上述站点导航XML定义到Web.sitemap文件的SiteMap节点内。
D. 嵌入上述站点导航XML定义到Web.config文件的AppSettings节点内。
E. 设置SiteMapDataSource 控件的StartingNodeUrl属性值为~/Marketing.aspx。
F. 设置SiteMapPath 控件的SkipLinkText属性值为Sales。
第6题
A.确保子列和父列有同样的名称。
B. 确保子表和父表有同样的名称。
C. 确保子列和父列有同样的数据类型。
D. 确保子表的每行数据在父表都有一个对应行。
E. 确保这个两个表在数据库中存在一个实际的关系定义。
第7题
A.
B.
C.
D.
第8题
A.在自定义控件代码中为Login按钮增加事件处理代码。
B.在自定义控件所在的Web窗体代码中为Login按钮增加事件处理代码。
C.在自定义控件所在的Web窗体的Page_Load方法中增加代码段去设置TextBox和Button控件的可见性。
D.在自定义控件的Page_Load方法中增加代码段去设置TextBox和Button控件的可见性。
第9题
A. Data ViewRowState.ModifiedOriginal;
B. Data ViewRowState.ModifiedCurrent;
C. Data ViewRowState.CurrentRows;
D. Data ViewRowState.Added;
第10题
A. object customerCount = cmd.ExecuteScalar(); lblCompanyName.Text =customerCount.ToString();
B. int customerCount = cmd.ExecuteNonQuery(); lblCompanyName.Text =customerCount.ToString();
C. SqlDataReader dr = cmd.ExecuteReader(); dr.Read(); lblCompanyName.Text =dr[0].ToString();
D. SqlDataReader dr = cmd.ExecuteReader(); dr.Read(); lblCompanyName.Text = dr.ToString();
为了保护您的账号安全,请在“赏学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!