The troublesome authentication method of ASP. NET has plagued me for a long time.
Using the MS verification control causes the layout to suffer, making it even more painful to manually write and judge.
After so much suffering, I specially collected some controls in this area, but I always felt that I was not suitable for myself.
Just for control development and learning, so I have studied these advanced controls and learned some of their own characteristics, coupled with some of their own needs, modified an extra valid textbox to free up your development difficulties.
I will try it out today. I don't know if it can meet your usual development needs:
Usage explanation
errormessage: message displayed after verification fails
validmethod: Verification Method:
onblur: no focus
onsubmit: Page Submission
All: all
validtype : Solemn type: Number, time, date, external regular expression, non-empty ....
validregularexpression: external Regular Expression
Datetimevalue:Obtain the value in datetime format;
Isempty= Textbox1.text. Length = 0
Isinttype: Whether it is int
Texttrimed= Textbox1.text. Trim ();
Comparecontrol:Is the comparison value equal to that of another control of the same type?
DLL download/files/mongoingboy/langzi.webcontrol.ktextbox.rar