How to access Eval("ID") in Java Script
Hi All,
i m facing the problem while creating the user control. Control is working fine. But the problem is i need to retrieve the value of using javascript.
here is the accurate code:
<asp:LinkButton ID="lk1" runat="server" OnClientClick="hgligt(1)" CommandName="Edit" CommandArgument='<%#Eval("ID") %>'> <span><%#Eval("name")%></span> </asp:LinkButton>
here is the problem:
<asp:LinkButton ID="lk1" runat="server" OnClientClick="hgligt('<%#Eval("ID") %>')" CommandName="Edit" CommandArgument='<%#Eval("ID") %>'> <span><%#Eval("name")%></span> </asp:LinkButton>
its accepts the constant value not dynamic
Help me
thanx in advance
__________________
Harjinder
|