Phone # field formatting!
I have an existing asp.net page that asks for a customer's US phone number. Unfortunately, the field is set up to only accept entries in an unbroken number string, i.e.
617-889-9923 or (617) 889-9923
How might I set up the field to accept phone numbers in one of these formats? I don't care as much how the number is stored in SQL, rather I want to make it easier for the customer. The unbroken string format is not familiar to a typical US user, and the form currently returns an error if dashes or brackets are used. For reference:
<td width="110" class="content"> Phone
<td><input name="sphone" type="text" id="sphone" size="20" maxlength="15" style="BACKGROUND-COLOR: lavender" value="<%=sphone%>" /></td>
Thank you very much.