Server Error in '/dopboysbasketball' Application.

Conversion from type 'DBNull' to type 'String' is not valid.

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.InvalidCastException: Conversion from type 'DBNull' to type 'String' is not valid.

Source Error:


Line 447:        mpLabel = CType(Master.FindControl("litTitle"), Literal)
Line 448:        If Not mpLabel Is Nothing Then
Line 449:            mpLabel.Text = dr1("SectionName")
Line 450:            SectionName.Text = dr1("SectionName")
Line 451:        End If

Source File: E:\web\2badcatscom\htdocs\dopboysbasketball\sectioninfo.aspx.vb    Line: 449

Stack Trace:


[InvalidCastException: Conversion from type 'DBNull' to type 'String' is not valid.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToString(Object Value) +443907
   sectioninfo.Page_Load(Object sender, EventArgs e) in E:\web\2badcatscom\htdocs\dopboysbasketball\sectioninfo.aspx.vb:449
   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.8806; ASP.NET Version:2.0.50727.8762