Server Error in '/' Application.

Input string was not in a correct format.

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.FormatException: Input string was not in a correct format.

Source Error:

Line 43:                 typeid = int.Parse(dr["typeid"].ToString());
Line 44:                 bigclassid = int.Parse(dr["bigclassid"].ToString());
Line 45:                 smallclassid = int.Parse(dr["smallclassid"].ToString()) + 0;
Line 46:             }
Line 47:             dr.Close();

Source File: s:\Bnt_NanJingLongxiao\readnews.aspx.cs    Line: 45

Stack Trace:

[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +14292453
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +305
   readnews.Page_Load(Object sender, EventArgs e) in s:\Bnt_NanJingLongxiao\readnews.aspx.cs:45
   System.Web.UI.Control.LoadRecursive() +71
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3178

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34280