How to stop underscores from appearing in the database using the Mask Edit Extender?
I am current using a ajax mask edit extender for my zip code textbox, but when inserting a new record the extender adds underscores in the database.
I would like for the user to have the option to enter a ten character zip code for an example "54883-4587" or the normal five digit zip code "54883".
If the user does not have the full zip code then I would like for the extender to put nothing after the "-9999".
Is this possible?
<asp:MaskedEditExtender
ID="MaskedEditExtender2"
TargetControlID="txtMailZipEdit"
MaskType="None"
Mask="99999-9999"
runat="server"
AutoCompleteValue="99999-9999"
AutoComplete="True"
ClearMaskOnLostFocus="False">
</asp:MaskedEditExtender>
<asp:RequiredFieldValidator
ID="rfvMailZip"
runat="server"
ControlToValidate="txtMailZipEdit"
ForeColor="Red"
Text="*"
ErrorMessage="Missing
Mailing Zip Code"/>