Server Error in '/' Application.

Operator '&' is not defined for type 'HtmlString' and string "<option id="".

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 type 'HtmlString' and string "<option id="".

Source Error:


Line 103:        For Each row In dt_c.Rows
Line 104:
Line 105:            AppState("c") = AppState("c") & "<option id=""" & row.item("Type") & """>" & row.item("Type") & "</option>"
Line 106:
Line 107:        Next

Source File: c:\sites\sites-tt\bellwatson\_PageStart.vbhtml    Line: 105

Stack Trace:


[InvalidCastException: Operator '&' is not defined for type 'HtmlString' and string "<option id="".]
   Microsoft.VisualBasic.CompilerServices.Operators.InvokeObjectUserDefinedOperator(UserDefinedOperator Op, Object[] Arguments) +1249123
   Microsoft.VisualBasic.CompilerServices.Operators.InvokeUserDefinedOperator(UserDefinedOperator Op, Object[] Arguments) +59
   Microsoft.VisualBasic.CompilerServices.Operators.ConcatenateObject(Object Left, Object Right) +229
   ASP._Page__PageStart_vbhtml.Execute() in c:\sites\sites-tt\bellwatson\_PageStart.vbhtml:105
   System.Web.WebPages.StartPage.ExecutePageHierarchy() +46
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +78
   System.Web.WebPages.WebPageHttpHandler.ProcessRequestInternal(HttpContextBase httpContext) +116


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