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 109:        For Each row In dt_no_c.Rows
Line 110:
Line 111:            AppState("no_c") = AppState("no_c") & "<option id=""" & row.item("Type") & """>" & row.item("Type") & "</option>"
Line 112:
Line 113:        Next

Source File: c:\sites\sites-tt\purpleletting\_PageStart.vbhtml    Line: 111

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\purpleletting\_PageStart.vbhtml:111
   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