I have two radio buttons SSN and TAxID and a masked text box.
When the SSN is checked,
then the masked text box will show ___-__-____
and when tax id is selected the masked text box will show __-_______
because i have set the mask property accordingly.
So when i enter value for SSN it gets entered as 333-33-3333 and for taxid as 11-1111111.
Now i want to mask the textbox to display only the last 4 values of the masked textbox ie XXX-XX-3333 for SSN and XX-XXX1111 for taxid.
I can do it using a normal text box, but the hifens in between should be formatted manually which is not acceptable by the client.
Any suggestions or sample code in this regard is appreciated.


