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 135:                DirectCast(myDetailsView_Biograph.FindControl("lblAcademic_position"), Label).Text = "<br />"
Line 136:            Else
Line 137:                DirectCast(myDetailsView_Biograph.FindControl("lblAcademic_position"), Label).Text = "<br /> <a class='read_link2' href='" + TxtBoxOther_Position.Text + "' target='_blank'> Google Scholar link </a> <br/><br/> <a class='read_link2' href=https://expert.ubd.edu.bn/" + TxtBoxStaff_ID.Text + " target='_blank'>UBD Experts </a>"
Line 138:            End If
Line 139:

Source File: C:\inetpub\wwwroot\UBDSBE\StaffDetails.aspx.vb    Line: 137

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   StaffDetails.SearchSTAFFREC(String SearchWord) in C:\inetpub\wwwroot\UBDSBE\StaffDetails.aspx.vb:137
   StaffDetails.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\UBDSBE\StaffDetails.aspx.vb:266
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


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