Uroci.net - !
Adobe Photoshop Adobe Illustrator Adobe Flash Adobe Fireworks DreamWeaver CSS HTML Corel Draw Image Ready PHP SEO CMS Microsoft Windows Microsoft Word Microsoft Excel PowerPoint Microsoft Access Microsoft Publisher Linux Visual basic
JavaScript Ajax 3ds Max Maya 3D C++ Sound Forge Gimp SWiSH

ASP.NET

bubust   :    : 5702



-

E - Web (client-side) (input). HTML . Microsoft ASP.NET . ASP.NET ; . DHTML, . - , . , . , . . Web Form UserInfo.aspx. Layout UserInfo FlowLayout. Toolbox WebForms Web . , Enter . Toolbox, Web Forms . , Toolbox, RequiredFieldValidator Web Forms . RequiredFieldValidator . RequiredFieldValidator , (input) TextBox, CheckBox, DropDownList. . RequiredFieldValidator Properties, ControlToValidate. TextBox1; , . . , UserInfo.aspx Solution Explorer Set As Start Page. . Internet Explorer. . RequiredFieldValidator . . RequiredFieldValidator , . , . , ASP.NET (server-side) . IE 4.0 -, . , , , . , - . .

(Types of Validators)

Web Forms Toolbox, . :

RequiredFieldValidator-- (validator) ControlToValidate . , () .

CompareValidator-- (validator) , . .

RangeValidator-- (validator) . , , , .

RegularExpressionValidator-- , (masks). , , .

CustomValidator-- , .

ValidationSummary-- .



(validator) . (Social Security number), , RegularExpressionValidator RequiredFieldValidator . RegularExpressionValidator, ControlToValidate TextBox1, ValidateExpression. Regular Expression Editor , U.S. Social Security Number OK. :

- . RequiredFieldValidator .

- Hello . RequiredFieldValidator RegularExpressionValidator.

- 111-11-1111 . , .



, - . RequiredFieldValidator Design - ErrorMessage. " This field is required". RegularExpressionValidator ErrorMessage " SSN must be in ###-##-#### format". , . , , ErrorMessage . , RequiredFieldValidator , RegularExpressionValidator . Display, Static. Dynamic RequiredFieldValidator , , ReqularExpressionValidator . Dynamic . IE 4.0 - , - Static.

Validation Summary

- - . ValidationSummary . , UserInfo.aspx . "First Name" ASP.NET TextBox. ID txtFName. "Last Name", ASP.NET TextBox . :

- Address 1 - City - Zip

- Address 2 - State - Phone

RequiredFieldValidator First Name, Last Name, Address 1, City, State, Zip. Address 2 Phone . Phone, RegularExpressionValidator ValidationExpression U.S. Phone Number, 114.



114

. 115.


115 .

116 .


. , 116.

, . , ValidationSummary. ValidationSummary , Phone .

HeaderText "The following errors occurred:" . . ValidationSummary . Text (*). ValidationSummary. . , , Phone . .

117. ValidationSummary.


117 ValidationSummary .


: «1 2

,


© . 2006-2008. Created by: Site.bg
: IT | | . | Paparak.bg | | uchenik.com | TRAVEL | | AmAm.bg | . | | AnimeS-bg.com | | | | IT Light | Spodeli.net | - | IDG.BG | Teenproblem.net | - | Fresh-BG.com | Hanovete.com | Bulfleet.com | Mythlands.com | Ohoboho.com | .Com | News24 | Setcom.bg | Atol.bg | Elmaz.com | MobileBulgaria.com