Asp.net| Source Code | validation Controls | bubbles
[Use:]
This procedure can improve the display effect of ASP.net's validation control, with a more user-friendly bubble hint to replace the original boring interface hint, and with the "Off prompt" function, effectively resolved an input box with multiple validation controls, display error message information is not in the same place of defects, It also effectively solves the defect that the validation control occupies the page hint information layout.
[Screenshot of Effect:]
[Use method:]
Copy the Winvalidatorfiles folder to the site root directory, and then insert the following code after </form>:
<script type= "Text/javascript" src= "/winvalidatorfiles/js/validator.js" >
</script>
[Note:]
1. This procedure is passed under Asp.net2.0,ie6 and Firefox2, but it is not guaranteed to adapt to all browsers.
2. When using a validation control, set the display property of the validation control to static (default is static).
3. The path starts with the root path, so set it as a Web site instead of a virtual directory when you test locally.
4. The principle of this procedure is to override the Validatorupdatedisplay function in the. NET Framework, so the code introduced must be followed by the <script src= "/webresource.axd code snippet that he generates."
[Copyright Related:]
You are welcome to use and reprint this program, but in order to respect the author's labor, please reprint the author's contact information should not be removed; also welcome to the idea of creating a better result of the validation, but also please send a revised program to the author himself, welcome exchanges, common progress. This bubble effect refers to the blue ideal code, thanks to it.
Author: Walkman
E-mail: winstepscn$163.com (convert $ to @)
[Demo and download:]
http://www.shouji138.com/aspnet2/