2
Answers

How to call Javasrcipt fuction in label tag with paramaters

Nilesh Patil

Nilesh Patil

6y
157
1
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)