Server Error in '/' Application.

Value was either too large or too small for an Int32.

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: Value was either too large or too small for an Int32.

Source Error:


Line 179:
Line 180:            //Set CurrentPage
Line 181:            CurrentPage = (Request.QueryString["cp"] != "" ? Convert.ToInt32(Request.QueryString["cp"]) : 0);
Line 182:        }
Line 183:

Source File: d:\Domains\londonandsoutheastnetball.co.uk\wwwroot\articles.aspx.cs    Line: 181

Stack Trace:


[OverflowException: Value was either too large or too small for an Int32.]
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +14524860
   System.Convert.ToInt32(String value) +60
   news.Page_Load(Object sender, EventArgs e) in d:\Domains\londonandsoutheastnetball.co.uk\wwwroot\articles.aspx.cs:181
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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