2
Answers

onclient click -how to pass multiple values

lejo

lejo

2y
853
1
<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)