The latest update version, more useful than this version, huh: http://www.cnblogs.com/thinhunan/archive/2005/04/15/137982.html
Three days later, two new thincontrols. webcontrols namespaces were finally evicted:
Validatetextbox; autoflextextbox.
Check the following controls carefully:
Validatetextbox is a set of textbox that is completely independent from the official verification control to enhance the verification function. The control provides two re-control: when the input is used to determine whether the input character is valid, when submitting the tab, verify the syntax integrity and correctness again. This group of controls can coexist perfectly with official verification controls, and provide textchanged Event Response and autopostback support(. NET 1.0 official verification controls do not support textbox back-to-pass detection ,. NET 1.1 I do not have time to do the test, but when you use the official verification control, while using this group of controls, it will automatically correct Microsoft's errors .)
Because Microsoft's verification control is overbearing when it passes the verification, the general practice will cause it to pass the verification directly sumbit, and other verification fails, it took me one morning to solve this problem and the autopostback problem. You can seeCodeSee my solutions and ideas.
Validatetextbox current version integrates the following verification and control:
Textvalidtype:
Int, // 123/+ 123/-123
Positiveint, // + 123/123
Negativeint, //-123
Float, // 111.111/+ 11.11/-11.11
Positivefloat, // + 11.111/11.111
Negativefloat, //-111.111
Email, // abc@bcd.com
URL, // http ://...
Color, // # aabbcc
Chinese, // Chinese
ASCII, // halfwidth character
Zipcode, // zip code
Tel, // landline (only available in China)
Mobile, // mobile phone
Imagefile, // Image File URL
Zipfile, // ZIP file URL, rar
Date, // Date
Capitalize, // uppercase
Uppercase, // converts to uppercase
Lowercase, // convert to lowercase
Time, // time
Ipadress // 10.1.0.21
Word Count control is available for all Verifications:
Islimitlength enables the word count control. countlengthmode allows you to set a full-width character to calculate whether a word is a word or two. If the minlength is greater than 0, you can use requiredfieldvalidator. If the value is greater than 0, the value 0 is unlimited.
Autopostback
Text sets the text of textbox.
Error message.
Messagestyle sets the display style of errormessage. If errormessage is set but not displayed, check whether it is set here.
Textboxstyle, textbox style.
Outerstyle: Set the style of the control's outer frame.
Set enableclientscript to false to convert the control into a common textbox.
Autoflextextbox is just a simple multi-line text field. It can be automatically scaled Based on the content, and you can set the maximum length of extended editing. The idea of this control comes from the internet. I don't remember which of my friends is there, it is hereby stated.
Maxheight.
Download d
Pay attention to the plan and trend of this blog.
Please provide improvement suggestions for this control group, especially for verifying the type extension. Thank you very much.
Use the following methods to try out the quick preview function:
If (! Ispostback)
{< br> thincontrols. webcontrols. thintextbox. validatetextbox valid;
for (INT I = 0; I <22; I ++)
{< br> valid = new thincontrols. webcontrols. thintextbox. validatetextbox ();
valid. countlengthmode = thincontrols. webcontrols. thintextbox. lengthmode. bigcharequaltwo;
valid. id = "valid" + I. tostring ();
valid. minlength = 5;
valid. maxlength = 20;
valid. textvalidtype = (thincontrols. webcontrols. thintextbox. validtype) I;
valid. islimitlength = true;
valid. errormessage = (thincontrols. webcontrols. thintextbox. validtype) I ). tostring ();
placeholder1.controls. add (valid);
}
}
The downstairs brother said it would be invalid. You can see this figure: