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 49:         if (!IsPostBack)
Line 50:         {
Line 51:             string cmdtext = " SELECT  uniqcode, title, matn, taeed, bazdid, fname, lname, sazman, moasese, mojrie, hadaf, ravesh, link," +
Line 52:                 " datee, vaz, txt_email, code_rahgiri from tbl_maghale where uniqcode= " + (Request.QueryString["id"].ToString());
Line 53:            

Source File: d:\PortalGolestan\site\maghaleviwe.aspx.cs    Line: 51

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   site_maghaleviwe.Page_Load(Object sender, EventArgs e) in d:\PortalGolestan\site\maghaleviwe.aspx.cs:51
   System.Web.UI.Control.OnLoad(EventArgs e) +105
   System.Web.UI.Control.LoadRecursive() +67
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3784


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