I want to pass three textbox values to a javascript function. However its not working.Any help is really appreciated.This is what I have tried.
<asp:ImageButton ID="ibut_cheque2" runat="server" target="_blank"
OnClientClick='<%# string.Format("window.open(\"Product.aspx?pid=\" +
document.getElementById(\"{0}\").value & chdate=\" +
document.getElementById(\"{1}\").value & pname=\" +
document.getElementById(\"{2}\").value,
null,\"scrollbars=yes,top=10,left=10\", \"true\");",
Form.FindControl("txt_voucher").ClientID,
Form.FindControl("txtbox_chqdate").ClientID,
Form.FindControl("txtbox_chprovider").ClientID)%>'
AlternateText="Print" CssClass="btn5" ForeColor="White" ToolTip="Print Cheque" />
SessionStateorPreviousPageproperty ... And in my opinion you'd better do this in .cs and not in .aspx