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 56: 				
Line 57: 				if len(staffid) > 0
Line 58: 					DropDownSendTo.Items.FindByValue(staffid).Selected = true
Line 59: 				end if
Line 60: 				

Source File: D:\Hosting\4899791\html\about\contactus.aspx.vb    Line: 58

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   testweb_about_Default.Page_Load(Object Sender, EventArgs E) in D:\Hosting\4899791\html\about\contactus.aspx.vb:58
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.4253; ASP.NET Version:2.0.50727.4252