A.Form
B.Input
C.控件模板
D.Panel
第3题
如图,是ASP.NET中的一个DropDownList控件,已知该控件的AutoPostBack属性、EnableViewState属性都为True, 该控件所在的页面的部分代码如下,在图示状态下,用户单击关羽项后,在页面的输出结果是()。 Protected System..Web.UI.WebControls.DropDownList DropDownList1; Protected System..Web.UI.WebControls.Button Button1; string name=”诸葛亮”; private void Page_load(Object sender,System.EventArgs e){ if(!this.IsPostBack){ string []names = new string[]{“张飞”,”关羽”,”刘备”} this.DropDownList1.DataSource = names; this.DataBind(); } } Private void DropDownList1_SelectedIndexChanged(object sender,System.EventArgs e) { If(this.DropDowmList1.SelectedItem!=null){ name=this.DropDownList1.SelectedItem.Text; } Response.Write(name) }
A、诸葛亮
B、张飞
C、关羽
D、刘备
第7题
A、Validationsummary
B、Requirefield Validator
C、Compare Validator
D、Drop Downlist
第8题
A、<%Page%>
B、<%@Control%>
C、<%Register%>
D、<%OutPutCache%>
第9题
A、同一个页面或应用程序中可以同时使用HTML服务器控件和Web服务器控件
B、HTML服务器控件的事件处理都是在客户端的页面上,而Asp.net服务器控件的事件处理在服务器
C、HTML服务器控件是运行在客户端的
D、在安全性要求较高或需要与数据库数据发生交互执行复杂请求时使用Web服务器控件
第10题
B.对一个下拉列表控件不能使用验证控件
C.服务器验证控件在执行验证时必定在服务器端执行
D.对验证控件,不能自定义规则
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!