在asp.net中,在一个登录页面中,为了验证用户在文本框中输入的用户名不为空,需要采用的验证控件是
A.RequiredFieldValidator
B.CompareValidator
C.RangeValidator
D.RegularExpressionValidator
A.RequiredFieldValidator
B.CompareValidator
C.RangeValidator
D.RegularExpressionValidator
第1题
A.Response.Redirect("second.aspx? un= userName ")
B.Response.Redirect("second.aspx & un=userName")
C.Response.Redirect("second.aspx& un="+ userName)
D.Response.Redirect("second.aspx? un="+ userName)
第2题
A.Inherits="Sales.FirstQuarter"
B.ClassName="Sales.FirstQuarter"
C.ClassName="Sales.FirstQuarter" Inherits="FirstQuarter "
D.Inherits="FirstQuarter"
第3题
A.<%Page%>
B.<%@Control%>
C.<%Register%>
D.<%OutPutCache%>
第4题
A.在每个窗体的Page_Load方法中添加判定语句,判断Session变量的值,如果权限不足,则跳转到登录界面。
B.在每个窗体的Page_Click方法中添加判定语句,判断Application变量的值,如果权限不足,则跳转到登录界面。
C.在每个窗体中增加一个按钮,针对按钮的Click事件,判断Session变量的值,如果权限不足,则跳转到登录界面。
D.在每个窗体中增加一个按钮,针对按钮的Load事件,判断Application变量的值,如果权限不足,则跳转到登录界面。
第6题
A.RequiredFieldValidator
B.CompareValidator
C.RangeFieldValidator
D.RegularExpressionValidator
第7题
A.RequiredFieldValidator
B.CompareValidator
C.RangeFieldValidator
D.RegularExpressionValidator
第9题
A.将MinimumValue设置为30,Type属性为String
B.将MinimumValue设置为18,Type属性为Integer
C.将MinimumValue 设置31,Type属性为Integer
D.将MinimumValue 设置17,Type属性为Integer