M
moondaddy
I have a <a> element in a datagrid which wraps some asp.net labels. this
element also has an onclick event which does not fire in netscape 6 (and
perhaps other browsers for all I know...). Below is the code for this. the
onclick event calls a javascript function which I put an alert in the firt
line to tell me if its working. It does work in IE. Any ideas on how to
get netcrap... oops, I'm sorry, netscape to fire the onclick event?
<a onclick='CartAdd(<%# DataBinder.Eval(Container.DataItem, "SKU1")%>)' >
<asp:Label id="lblItem1" runat="server" CssClass="clsGdChmNameStnd">
<%# DataBinder.Eval(Container.DataItem, "Item1")%>
</asp:Label><br>
<asp:Label id="lblSKU1" runat="server" CssClass="clsGdChmSKUStnd">sku: <%#
DataBinder.Eval(Container.DataItem, "SKU1")%> </asp:Label>
<br>
<asp:Label id="lblPrice1" runat="server" CssClass="clsGdChmSKUStnd">
<%# DataBinder.Eval(Container.DataItem, "Price1") %>
</asp:Label>
</a>
element also has an onclick event which does not fire in netscape 6 (and
perhaps other browsers for all I know...). Below is the code for this. the
onclick event calls a javascript function which I put an alert in the firt
line to tell me if its working. It does work in IE. Any ideas on how to
get netcrap... oops, I'm sorry, netscape to fire the onclick event?
<a onclick='CartAdd(<%# DataBinder.Eval(Container.DataItem, "SKU1")%>)' >
<asp:Label id="lblItem1" runat="server" CssClass="clsGdChmNameStnd">
<%# DataBinder.Eval(Container.DataItem, "Item1")%>
</asp:Label><br>
<asp:Label id="lblSKU1" runat="server" CssClass="clsGdChmSKUStnd">sku: <%#
DataBinder.Eval(Container.DataItem, "SKU1")%> </asp:Label>
<br>
<asp:Label id="lblPrice1" runat="server" CssClass="clsGdChmSKUStnd">
<%# DataBinder.Eval(Container.DataItem, "Price1") %>
</asp:Label>
</a>