comment valider cette identification dans vb.detvalidation EMAILID dans vb.net
"[email protected]" en utilisant = ValidationExpression = "^ [\ w -] + @ [\ W- ] +. (com | net | org | edu | mil) "" $ ce code ci-dessus n'accepte cette id mais est valide un par exemple
<tr>
<td align="right">
<font face="Arial" size="2">Email Address:</font>
</td>
<td>
<asp:TextBox ID="email" Width="200px" MaxLength="60" runat="server" />
</td>
<td>
<asp:RequiredFieldValidator ID="emailReqVal" ControlToValidate="email" ErrorMessage="Email. "
Display="Dynamic" Font-Names="Verdana" Font-Size="12" runat="server">
*
</asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="emailRegexVal" ControlToValidate="email" ErrorMessage="Email. "
Display="Static" ValidationExpression="^[\w-][email protected][\w-]+\.(com|net|org|edu|mil)$"
Font-Names="Arial" Font-Size="11" runat="server">
Not a valid e-mail address. Must follow [email protected]
</asp:RegularExpressionValidator>
</td>
</tr>
merci beaucoup pour votre réponse aimable merci beaucoup –