asp.net - set multiple Validator for single textbox -


i new asp.net , facing small small problem in , problem set multiple validator single textbox. set validation while running it, validation takes step-by-step, not in single place.

here's code:

<td align="right" style="padding-right: 5px; width: 50%;">     <asp:label id="lblconformpassword" runat="server" text="conformpassword &nbsp;:"></asp:label> </td> <td align="left" style="padding-left: 5px; width: 50%; color: #ff0000;">     <br />     <br />     <br />     <asp:textbox id="txtconformpassword" runat="server" textmode="password" width="70%"         forecolor="red" autocompletetype="office"></asp:textbox>     * &nbsp;&nbsp;&nbsp;<br />     <asp:requiredfieldvalidator id="requiredfieldvalidator5" runat="server" controltovalidate="txtconformpassword"         errormessage="you can't leave empty." style="color: #ff0000;"></asp:requiredfieldvalidator>     <br />     <asp:regularexpressionvalidator id="rfvconformpassword" runat="server" controltovalidate="txtconformpassword"         errormessage="see note" validationexpression="(?=^.{6,}$)(?=.*\d)(?=.*\w+)(?![.\n]).*$"></asp:regularexpressionvalidator>     <br />     <asp:comparevalidator id="comparevalidator1" runat="server" controltocompare="txtpassword"         controltovalidate="txtconformpassword" errormessage="password , conformpassword should same."         display="dynamic" style="color: #ff0000; margin-left: 0px"></asp:comparevalidator>     <br /> </td> 

all of validation should take place in single line. how can set it? can 1 me on process?

ok..i guess there 1 property in validator display="dynamic" can try that.and can take div structure instead of
.also have put display=dynamic in validators thanks


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -