I am trying to format a number in my database as a phone number and don't know if I am doing it right. I have a variable that I have set up as an integer. Then I take that variable and do a tostring command like this
fax1.ToString("(###)-###-####"
I am getting this error though
Arithmetic operation resulted in an overflow.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.OverflowException: Arithmetic operation resulted in an overflow.
Source Error:
Can anyone help me on this?
fax1.ToString("(###)-###-####"
I am getting this error though
Arithmetic operation resulted in an overflow.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.OverflowException: Arithmetic operation resulted in an overflow.
Source Error:
Can anyone help me on this?