102ASP.NET2.05WebWebJavaScript5.1.NET.NETJavaScript5.1.1.NETJavaScript..NETWebUIValidation.jsWeb@PageClientTarget=downlevel%ASP.NETHTML3.2EnableClientScriptFalse5.2WebRequiredFieldValidatorTextBoxRequiredFieldValidator5.15.1RequiredFieldValidatorControlToValidateIDDisplayTextStaticDynamicNoneStaticEnableClientScriptTrueEnabledTrueErrorMessageValidationSummaryTextInitialValueControlToValidateIsValidTrueTextValidateIsValid5-01.aspx!--5-01.aspx--!--RequiredFieldValidator--%@PageLanguage=C#AutoEventWireup=trueCodeFile=6-01.aspx.csInherits=_5_01%htmlxmlns==servertitle/title/headbodyformid=form1runat=serverdiv asp:TextBoxID=txtTextrunat=server/asp:TextBoxasp:RequiredFieldValidatorID=RequiredFieldValidator1runat=serverControlToValidate=txtTextDisplay=DynamicErrorMessage=/asp:RequiredFieldValidatorbr/br/asp:ButtonID=Button1runat=serverText=OnClick=Button1_Click//div/form1036/body/html5-01.aspx.cs//5-01.aspx.cs//5-01.aspxusingSystem;usingSystem.Data;usingSystem.Configuration;usingSystem.Collections;usingSystem.Web;usingSystem.Web.Security;usingSystem.Web.UI;usingSystem.Web.UI.WebControls;usingSystem.Web.UI.WebControls.WebParts;usingSystem.Web.UI.HtmlControls;publicpartialclass_6_01:System.Web.UI.Page{protectedvoidPage_Load(objectsender,EventArgse){}protectedvoidButton1_Click(objectsender,EventArgse){if(IsValid==true){Response.Write();}}}6-01.aspxTextBoxTextBoxRequiredFieldValidatorButton5.1Enter5.25.35.3104ASP.NET2.05.15.25.3ASP.NETRegularExpressionValidatorRegularExpressionValidator5.25.2RegularExpressionValidatorControlToValidateIDDisplayTextStaticDynamicNoneStaticEnableClientScriptTrueEnabledTrueErrorMessageValidationSummaryTextIsValidTrueTextValidationExpressionValidateIsValidValidationExpressionRequiredFieldValidatorRegularExpressionValidatorValidationExpressionRequiredFieldValidator-02.aspxRegularExpressionValidator!--5-02.aspx--!--RegularExpressionValidator--%@PageLanguage=C#AutoEventWireup=trueCodeFile=6-02.aspx.csInherits=_5_02%htmlxmlns==servertitle/title/headbodyformid=form1runat=serverdivasp:LabelID=Label1runat=serverHeight=23pxText=Width=147px/asp:Labelasp:TextBoxID=txtUrlrunat=serverWidth=169px/asp:TextBoxasp:RegularExpressionValidatorID=RegularExpressionValidator1runat=serverErrorMessage=1056ControlToValidate=txtUrlDisplay=DynamicValidationExpression=http(s)?://([\w-]+\.)+[\w-]+(/[\w-./?%&=]*)?Width=176px/asp:RegularExpressionValidatorasp:RequiredFieldValidatorID=RequiredFieldValidator1runat=serverControlToValidate=txtUrlDisplay=DynamicErrorMessage=/asp:RequiredFieldValidatorbr/asp:LabelID=Label2runat=serverHeight=18pxText=E-mailWidth=149px/asp:Labelasp:TextBoxID=txtEmailrunat=serverWidth=169px/asp:TextBoxasp:RegularExpressionValidatorID=RegularExpressionValidator2runat=serverControlToValidate=txtEmailDisplay=DynamicErrorMessage=E-mailValidationExpression=\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*Width=173px/asp:RegularExpressionValidatorasp:RequiredFieldValidatorID=RequiredFieldValidator2runat=serverControlToValidate=txtEmailDisplay=DynamicErrorMessage=E-mail/asp:RequiredFieldValidatorbr/asp:ButtonID=Button1runat=serverOnClick=Button1_ClickText=//div/form/body/html//5-02.aspx.cs//5-02.aspxusingSystem;usingSystem.Data;usingSystem.Configuration;usingSystem.Collections;usingSystem.Web;usingSystem.Web.Security;usingSystem.Web.UI;usingSystem.Web.UI.WebControls;usingSystem.Web.UI.WebControls.WebParts;usingSystem.Web.UI.HtmlControls;publicpartialclass_5_02:System.Web.UI.Page106ASP.NET2.0{protectedvoidPage_Load(objectsender,EventArgse){}protectedvoidButton1_Click(objectsender,EventArgse){if(RegularExpressionValidator1.IsValid==true){Response.Write(URL);}if(RegularExpressionValidator2.IsValid==true){Response.Write(E-mail);}}}RequiredFieldValidatorRegularExpressionValidator5.45.6VisualStudio.Net20055.7ValidationExpression10765.45.55.65.75.4ASP.NETCompareValidator5.35.3CompareValidatorControlToCompareIDControlToValidateIDDisplayTextStaticDynamicNoneStaticEnableClientScriptTrueEnabledTrueErrorMessageValidationSummaryTextIsValidTrueOperatorEqualNotEqualGreaterThanGreaterThanEqualLessThanLessThanEqualDataTypeCheckTextTypeCurrencyDateDoubleIntegerStringValueToCompareValidateIsValid5.4.15-03.aspx!--5-03.aspx--!--CompareValidator--%@PageLanguage=C#AutoEventWireup=trueCodeFile=6-03.aspx.csInherits=_5_03%htmlxmlns==servertitle/title/headbodyformid=form1runat=serverdivasp:LabelID=Label1runat=serverHeight=19pxText=Width=154px/asp:Labelasp:TextBoxID=txtStaDaterunat=server/asp:TextBoxbr/asp:LabelID=Label2runat=serverHeight=19px108ASP.NET2.0Text=Width=153px/asp:Labelasp:TextBoxID=txtEndDaterunat=server/asp:TextBox