Server Error in '/' Application.

Object reference not set to an instance of an object.

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.NullReferenceException: Object reference not set to an instance of an object.

Source Error:


Line 185:        if (Request.QueryString.ToString().Contains("page"))
Line 186:        {
Line 187:            int.TryParse(Request.QueryString["page"].ToString(), out intPageNumber);
Line 188:        }
Line 189:

Source File: G:\PleskVhosts\mikemonaghancharitygolf.com\httpdocs\book_or_movie\TESTING.aspx.cs    Line: 187

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   TESTING.OnPreInit(EventArgs e) in G:\PleskVhosts\mikemonaghancharitygolf.com\httpdocs\book_or_movie\TESTING.aspx.cs:187
   System.Web.UI.Page.PerformPreInit() +31
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +282


Version Information: Microsoft .NET Framework Version:2.0.50727.9061; ASP.NET Version:2.0.50727.9062