Anyone know why this does this?
Server Error in '/' Application.
Arithmetic operation resulted in an overflow.
Server Error in '/' Application.
Arithmetic operation resulted in an overflow.
Code:
<asp:Label ID="Label4" runat="server" Font-Size="Medium" Text='<%# GetPhoneFormat(Eval("Phone")) %>' />
Function GetPhoneFormat(ByVal Phone As String) As String
Dim PhoneFormat As String
If IsDBNull(Phone) Or IsNothing(Phone) Then
PhoneFormat = " "
Else
Phone = CInt(Phone).ToString("(000) 000-0000")
PhoneFormat = "<b>Phone:</b> " & Phone
End If
Return PhoneFormat
End Function
Comment