How can I concatenate two strings in a id of a unordered list. The problem is :
<li id='autor<%# Eval("id") %>' runat="server"/>
What I have inside of <%# Eval("id") %>
is the id of the author I and want in my id the string autor plus the id.
How can I do that?.
With the id it's different than the Text, so I don't know how to do that.
'<%# "Mr " + Eval("ID") & Eval("LastName")%>
您可以使用以下方法实现它:
<li id='<%# "Author"+ Eval("id") %>' runat="server"/>
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.