Nilesh Patil

Nilesh Patil

  • NA
  • 3k
  • 111.5k

How to call Javasrcipt fuction in label tag with paramaters

Nov 17 2017 3:42 AM
Hi,
All I want to call javascript function with parameters in label tag
 
I tried this but its not work
 
<asp:Label ID="lbldata" runat="server" class='btn btn-primary' Text='<%# Eval("Row#") %>' onclick="fnShow(PropertyDetailsId )" />
 
And this is my Javascript fuction
 
<script>
function fnShow(PropertyDetailsId) {
ifrm_RentPrint.src = "/WebForms/Filteration/OwnerPrintForm.aspx?PropertyDetailsId=" + PropertyDetailsId;
}

Answers (2)