Passing the Eval value to a javascript method is bit tricky.
You cannot pass directly as shown below.
Instead , the below way should work
You cannot pass directly as shown below.
<asp:LinkButton id='lnk' runat='server' OnClientClick='<%#Eval("columnname","javascript:testfun({0});")%>' />Instead , the below way should work
<asp:LinkButton id='lnk' runat='server' OnClientClick='<%#Eval("columnname","javascript:testfun({0});")%>' />
No comments:
Post a Comment