Last post Nov 18, 2013 01:19 AM by Happy Chen - MSFT
Nov 15, 2013 04:37 AM|Amarnath Balasubramanian|LINK
Hi Everyone out there..!
I am facing a problem with maskededitextender.
I have a text box which has maskededitextender and its Mask ="99999-99999" and MaskType as Number.
While inserting these values to the database i just need to pass 9999999999 without the "-" . ClearMaskOnlastFocus is set to true but it doesn't solves my problem.
Can anyone help me in this Please.
Nov 17, 2013 10:32 PM|chetan.sarode|LINK
Nov 18, 2013 01:19 AM|Happy Chen - MSFT|LINK
I would suggest you try to use replace('-','') in code-behind, seems like below:
string strNum = TextBox1.Text.Trim().Replace("-", "");
Please read the reference below for more information:
MaskedEditExtender's ClearMaskOnLostFocus does not work