|
|
|
|
How to implement custom validation for any transaction and then display the custom validator error m 1.III |
Version: 1.III |
Freeware By: Stephan Bren  |
| Downloads: 4 Hits: 123 |
Source: NO |
report broken  |
Sponsored Links:
Description of How to implement custom validation for any transaction and then display the custom validator error m :
ASP.NET provides a number of form-level validation controls to validate a wide range of conditions. ASP.NET also provides a ValidationSummary control that is able to collect validator error messages and display them in a single location for ease of readability. Most all of these validator controls deal with form data processing. You may also want to display error messages in the ValidationSummary that have been generated by other processes at the application level and thus you need a way of validating process or transaction completion that employs the ASP.NET validation framework. Using the CustomValidation control, you can easily implement validation of any function, process, or transaction and then display custom validation error messages in the same location as form-level validation messages. And, you'll be able to implement this validation by placing all the code in the CodeBehind page of the web page that you are working with. / In this walkthrough, you'll be exposed to how custom validation was implemented for a user page that displays user data. This page is used to view and update user data. The page already employs a number of form-level standard validators, such as the RequiredFieldValidator and RegularExpressionValidator controls. Error messages generated by these validators all appear in one location and are listed and displayed by the ValidationSummary control. The custom validation is triggered whenever the user attempts to update his account information. During the update process, a connection to the website's database is opened, a SQL query string is constructed and then executed against the database. We would like to protect the update process code, and then trigger the custom validator if the update process fails for any reason, display a summary of the error and what to do about it to the user.
|
|
|
User Reviews: |
|
|
Related: |
.NET Ways to Get Your XML Into a Database is an article in which author gives guidelines for the learners to store the data of XML documents into a...
|
Freeware |
By: Fawcette.com  |
A better way to create XML documents in .NET is an article in which author gives detailed description about the processes of genearting XML...
|
Freeware |
By: Leonardo Esposito  |
A Virtual Future is an easy tutorial through which users can gain knowledge about concept of XMLTextReader and its attributes, which can be used...
|
Freeware |
By: Certy.com  |
ADO.NET and XML: Two Great Tastes That Go Great Together is an article in which author elaborates the basic concepts of working with both XML and...
|
Freeware |
By: Microsoft Corporation  |
An introduction to XML, XSL, and ASP.NET is a web based tutorial in which the author demonstrates about different classes that perform the process...
|
Freeware |
By: Superdotnet.com  |
Interface with your GPS receiver.
|
Shareware |
By: Axolot Data |
Read and write Metastock quote files.
|
Shareware |
By: Axolot Data |
XLSReadWriteII.NET for Delphi 2005/2006 and others, Win Forms Use this version for creating Win Forms applications with Delphi, Visual Studio and...
|
Shareware |
By: Axolot Data |
Syndicate Pro multi-platform compatible. Syndicate Pro is server software for managing and distributing news headlines and other content over the ...
|
Shareware |
By: Sujit |
Interactive SQL for PostgreSQL is a powerfull database utility. It allows: Build SQL queries using SQL Editor with SQL syntax highlighting and SQL...
|
Shareware |
By: Sujit |
|
|
|
|