Hi,
I am trying very hard to pass three parameters to a javascript function from within a itemtemplate of a gridview:
For one parameter, it works fine:
<asp:HyperLink ID="hypComment" runat="server" Font-Bold="True"
NavigateUrl='<%# Eval("CCN", "javascript:ShowCommentPopUp({0});") %>'>Add
</asp:HyperLink>
where CCN is my column in gridview. This will actually pass the ccn in which the row is clicked:
I want to pass two more params: "Name" and "Status" are the corresponding columns as the 2nd and 3rd arguments for the ShowCommentPopUp function. I tried many ways, but ended up in all syntax errors. Lot of time is invested.
for example:
NavigateUrl='<%# Eval(["CCN", "NAME", "javascript:ShowCommentPopUp({0}, {1});")
etc etc
if anyone can help me, it is greatly appreciated.
thanks, Aparna