简体   繁体   中英

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" />

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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