3
I would like to send the parameters (database ID, Clientid) in a <asp:Hyperlink
. I wanted the end result to be:
<a id="ctl00" onclick="OpenModal(704520,'asdf_ID_DaImageAbaixo')">
<img id="ID_IMAGE" src="../online/img_admin/icon_hist.gif" />
</a>
But I can’t do 2 things. First the simple quotes are not working.
String.Format("AbreModal({0},'{1}')",
Gives Tag not formatted with these simple quotes. Without them it works, but then does not close in Javascript.
Second: I can’t capture the image ID below and send this link, I’m trying:
<asp:HyperLink ID="HyperLink4" runat="server" onclick='<%# String.Format("AbreModal({0},{1})", DataBinder.Eval(Container.DataItem, "intid"),"123" ) %>'>
<asp:Image ID="img_Historico" runat="server" ImageUrl="../online/img_admin/icon_hist_off.png" />
</asp:HyperLink>
How to send?
Any personal suggestions?
– Dorathoto