Web Forms error message: “This is not scriptlet. Will be output as plain text”

后端 未结 3 619
醉酒成梦
醉酒成梦 2020-12-09 08:38

In my ASP .NET Web Forms I have the following declarative code:

\' />         


        
3条回答
  •  隐瞒了意图╮
    2020-12-09 09:08

    The problem is that you can't mix runat=server controls with <%= .. %>code blocks. The correct way would be to use code behind: txtbox.CssClass = TEXTBOX_CSS_CLASS;.

提交回复
热议问题