Understanding ASP.NET Validation Controls

Written by Balaji


Continued from page 1

• Range Validation control: Prompts message torepparttar user, ifrepparttar 133458 data entered inrepparttar 133459 input field is not withinrepparttar 133460 range ofrepparttar 133461 values specified byrepparttar 133462 Maximum and Minimum properties ofrepparttar 133463 validation control.

• Comparison Validation control: Allowsrepparttar 133464 user to compare two values and check for comparisons such as equality, greater-than, less-than etc. In addition you can check whetherrepparttar 133465 data entered inrepparttar 133466 input field is ofrepparttar 133467 data type as specified by you.

• RegularExpression Validation control: Allows you to validate ifrepparttar 133468 format of a certain input field is correct or not. You can checkrepparttar 133469 validation ofrepparttar 133470 commonly performed formats such as social security numbers, e-mail addresses, telephone numbers, and postal code.

• Custom Validation control: Allows you to define your own condition for validatingrepparttar 133471 data inrepparttar 133472 input fields. Two validation functions can be performed using Custom Validation control: first onrepparttar 133473 server-side and second onrepparttar 133474 client-side. These functions contain logic defined by you to validaterepparttar 133475 input fields. These functions returnsrepparttar 133476 True value and False value, ifrepparttar 133477 condition you specified is correct or not respectively.

Ifrepparttar 133478 control’s value does not validate to what you have specified inrepparttar 133479 validation control tag,repparttar 133480 web form displays an error message. Moreover, you can customizerepparttar 133481 format ofrepparttar 133482 error message by usingrepparttar 133483 control properties such as BackColor, BorderStyle, and BorderWidth. In addition, you can use Cascading Style Sheet (CSS) to format an error message.

To access online version ofrepparttar 133484 above article, please go to http://www.dotnet-guide.com/validation.html



Visit http://www.dotnet-guide.com for a complete introduction to .NET framework. Learn about ASP.NET, VB.NET, C# and other related technologies.


Getting Started with ASP.NET Web Matrix

Written by Balaji


Continued from page 1

ASP.NET Web Matrix allows you to add online components to your web applications. The biggest disadvantage of ASP.NET Web Matrix isrepparttar absence of IntelliSense, which makes writingrepparttar 133457 code a little tough. ASP.NET Web Matrix, like Visual Studio.Net, supports multiple languages such as VB, C#, and J#. ASP.NET Web Matrix also supports both FTP-based and file-based workspaces. Workspaces are saved across sessions for allowing you to quickly work on your application. This allows developers to easily organize and edit their ASP.NET applications. They just have to double-clickrepparttar 133458 file withinrepparttar 133459 workspace tree to open it for editing.

ASP.NET Web Matrix provides a built-in access torepparttar 133460 ASP.NET community right from within its IDE. This allows you to browse through community web sites and searchrepparttar 133461 ASP.NET Forums and Newsgroups, in case you need help. ASP.NET Web Matrix Project allows you to easily develop ASP.NET database applications because it has built-in support for Microsoft SQL Server and MSDE.

To access online version ofrepparttar 133462 above article, please go to http://www.dotnet-guide.com/webmatrix.html

Visit http://www.dotnet-guide.com for a complete introduction to .NET framework. Learn about ASP.NET, VB.NET, C# and other related technologies.


    <Back to Page 1
 
ImproveHomeLife.com © 2005
Terms of Use