Understanding ASP.NET Validation Controls

Written by Balaji


Understanding ASP.NET Validation Controls

After you create a web form, you should make sure that mandatory fields ofrepparttar form elements such as login name and password are not left blank; data inserted is correct and is withinrepparttar 133458 specified range. Validation isrepparttar 133459 method of scrutinizing thatrepparttar 133460 user has enteredrepparttar 133461 correct values in input fields. In HTML you can perform validation either by checkingrepparttar 133462 values at client-side or after submittingrepparttar 133463 form atrepparttar 133464 server-side. But these methods in HTML take lots of time to create and maintainrepparttar 133465 code. Moreover, ifrepparttar 133466 user has disabled JavaScript then he or she may not receiverepparttar 133467 message regardingrepparttar 133468 error.

Therefore, in ASP.NET you can use ASP.NET Validation Controls while creatingrepparttar 133469 form and specify what ASP.NET Validation Controls you want to use and to which server control you want bind this. ASP.NET Validation Controls are derived from a common base class and share a common set of properties and methods. You just have to drag and droprepparttar 133470 ASP.NET Validation Control inrepparttar 133471 web form and write one line of code to describe its functionality.

This reducesrepparttar 133472 developer time from writing JavaScript for each type of validation. Moreover, through ASP.NET Validation Controls if any invalid data is enteredrepparttar 133473 browser itself detectsrepparttar 133474 error onrepparttar 133475 client side and displaysrepparttar 133476 error without requestingrepparttar 133477 server. This is another advantage because it reducesrepparttar 133478 server load.

The five types of ASP.NET Validation Controls in ASP.NET Framework include:

• RequiredField Validation control: prompts message if any input field is left blank. This validation control can also be used to prompt message torepparttar 133479 user if he or she has left any input field with its default value.

Getting Started with ASP.NET Web Matrix

Written by Balaji


Getting Started with ASP.NET Web Matrix

ASP.NET Web Matrix is a development tool by Microsoft to create sophisticated web applications. Visual Studio.Net, another development tool, has lots of features such as creating windows applications, web services, and mobile application. But these very features of Visual Studio.Net make it bigger in size. Moreover, installing Visual Studio.Net needs 512MB of RAM. This, in contrast, ASP.NET Web Matrix is meant only to create ASP.NET web applications. Moreover, ASP.NET Web Matrix is “lightweight” and can be easily downloadable. The download size of ASP.NET Web Matrix is only 1.1 MB.

In ASP.NET Web Matrix you do not need to install Internet Information Server (IIS). It comes with built-in web server. ASP.NET Web Matrix can be divided into three components such as Class Browser, Web Matrix Editor, and Web Server. The Class Browser displays allrepparttar classes inrepparttar 133457 Base Class Library with their methods, properties and events. The Web Matrix Editor isrepparttar 133458 visual interface where you can drag and drop controls to build web applications. The Web Server is used to test and run your web applications.

Cont'd on page 2 ==>
 
ImproveHomeLife.com © 2005
Terms of Use