简体   繁体   English

服务器标签格式不正确

[英]The Server Tag is not well formed

I have been searching for a while now yet can not seem to find an answer. 我已经搜索了一段时间,但似乎找不到答案。

All the cases that I have seen have had this issue fixed by simply changing the " to a ' 我已经看到有这样的问题,通过简单地改变固定在所有情况下"'

Please see the code below to see what i currenty have. 请查看下面的代码,以查看我当前拥有的内容。

<td><asp:Button ID='<%#DataBinder.Eval(Container.DataItem, "valueID")%>' runat="server" Text="Hello" OnClick="SomeStuff_Click" /></td>

您可以将其用作className并在js中通过$(“。myClass”)搜索。

<asp:Button ID="asda" ClassName='<%#DataBinder.Eval(Container.DataItem, "valueID")%>' runat="server" Text="Hello" OnClick="SomeStuff_Click" />

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM