Is it possbile to use databind value as id in aspx page

时间:2019-03-19 14:47:09

标签: html asp.net

I would like to name the id using databind value n aspx page. My code is incorrect. Is it possbile to use dataind value as id in aspx page? If so, would someone tell me how to do it?

there is my script:

<asp:HiddenField runat="server"     id='<%# "hd" & Eval(Container.DataItem, "IDNum") %>' />

0 个答案:

没有答案