i need a code in asp validationExpression to vallidate an expression that can eneable us to Avoid the submit if ther is any lettre (d) in the end of the Word
exemples :
disable : GIAC1-IMME-D (BAD)
eneable : GIAC1-IMME (GOOD)
put it here :
<asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ControlToValidate="date_Fin"
Display="Dynamic" ErrorMessage="Invalid date"
ForeColor="Red" ValidationExpression=""></asp:RegularExpressionValidator>
tnks my clan
I’m assuming you are talking about the ValidationExpression attribute of the RegularExpressionValidator control. If that is the case you can use the regex below. It will match any string that contains anything except a newline character and doesn’t end in a lower or uppercase d.