Server Error in '/' Application.

Operator '=' is not defined for string "Super Moves" and type 'DBNull'.

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: Operator '=' is not defined for string "Super Moves" and type 'DBNull'.

Source Error:


Line 466:                End If
Line 467:
Line 468:                If old_typeStr = DataBinder.Eval(e.Item.DataItem, "typeName") Then
Line 469:                    lblObj = e.Item.FindControl("lblTYpe")
Line 470:                    lblObj.Visible = False

Source File: D:\InetPub\vhosts\trufenix-1912.package\fightabase.com\wwwroot\gameMain.aspx    Line: 468

Stack Trace:


[InvalidCastException: Operator '=' is not defined for string "Super Moves" and type 'DBNull'.]
   Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectEqual(Object Left, Object Right, Boolean TextCompare) +182
   ASP.gamemain_aspx.moveBind(Object sender, DataListItemEventArgs e) in D:\InetPub\vhosts\trufenix-1912.package\fightabase.com\wwwroot\gameMain.aspx:468
   System.Web.UI.WebControls.DataList.OnItemDataBound(DataListItemEventArgs e) +148
   System.Web.UI.WebControls.DataList.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +195
   System.Web.UI.WebControls.DataList.CreateControlHierarchy(Boolean useDataSource) +906
   System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e) +88
   ASP.gamemain_aspx.page_load() in D:\InetPub\vhosts\trufenix-1912.package\fightabase.com\wwwroot\gameMain.aspx:293
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +154
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4082


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