Server Error in '/' Application.

未将对象引用设置到对象的实例。

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: 未将对象引用设置到对象的实例。

Source Error:


Line 48:                     else
Line 49:                     {
Line 50:                         MessageBox.ShowAndRedirect(Page, "参数错误!", Request.UrlReferrer.ToString());
Line 51:                     }
Line 52:             }

Source File: d:\jijinhui\www\detail.aspx.cs    Line: 50

Stack Trace:


[NullReferenceException: 未将对象引用设置到对象的实例。]
   detail.Page_Load(Object sender, EventArgs e) in d:\jijinhui\www\detail.aspx.cs:50
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +24
   System.Web.UI.Control.LoadRecursive() +70
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3047


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