lejo

lejo

  • 1k
  • 425
  • 14.5k

onclient click -how to pass multiple values

Feb 3 2023 5:37 AM
<asp:LinkButton ID="lnkbtnLogin" runat="server" data-toggle="modal" CssClass="text-white" data-target="#detailedPopup" OnClientClick='<%# Eval("EmpID", "showPopUp(\"{0}\"); return false;") %>'>
<asp:Label ID="lblview" runat="server" Text="view" meta:resourcekey="lblviewResource1"></asp:Label>
</asp:LinkButton>

in showPopUp Function - i am passing only one value ,but i want to pass more than one value .i given like below  .not working 

OnClientClick='<%# string.Format("return showPopUp ({0}, \"{1}\", \"{2}\");", Eval("EmpID"), Eval("Name"), Eval("Date")) %>' /> 

 


Answers (2)