Click here to Skip to main content
15,897,718 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
if my MaskedEditExtender is empty on textbox the it will be save but it giving error message

error message should be come when the enter number is invalid.

MaskedEditExtender should be working only when the number is invlid
please help me
Posted

1 solution

MaskedEditExtender allows only valid data, if u want to display error message on keypress, use javascript or MaskedEditValidator.

<asp:textbox id="TextBox1" runat="server" xmlns:asp="#unknown">
<asp:maskededitextender id="TextBox1_MaskedEditExtender" runat="server" xmlns:asp="#unknown">
CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder=""
CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder=""
CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True"
Mask="999999999" MaskType="Number" TargetControlID="TextBox1">
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900