I have gridview in asp.net as:

 <asp:TemplateField HeaderText="Shipment Received" ItemStyle-VerticalAlign="top" HeaderStyle-VerticalAlign="top">
  <ItemTemplate>
    <a href="#"  id="aShipment"  onclick="javascript:setIdRMA('<%# Eval("idRMA") %>','<%# Eval("idreturn")%>','<%# Eval("idorder")%>','<%# Eval("returnReason")%>','<%# Eval("returnFor")%>','<%# Eval("returnStatus")%>','<%# Eval("dateClosed")%>','<%# Eval("shipmentReceiveDate")%>','<%# Eval("resolution")%>','<%# Eval("sku") %>',lblShipmentReceived.ClientID);">
      <asp:Label ID="lblShipmentReceived" runat="server" Text='<%# Bind("shipmentReceived")%>'></asp:Label>
    </a>

  </ItemTemplate>
</asp:TemplateField>

on click of anchor tag i am calling setIdRMA method of javascript

I want to send client id of label inside anchor tag to that function.

For that i written as shown in above:

lblShipmentReceived.ClientID

But this does not get passed.

Please help me.

Related posts

Recent Viewed