Click here to Skip to main content
15,891,884 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,
i want to know that on which event i can get that whether check box is chekced or not??

currently i am adding attribute on outside !ispostback to create a javascript event on one button but which works fine but i want to pass checkbox checked value as a query string which is always false even if it is checked.


C#
bool status = chkIsVatApply.Checked;
            string url = "PrintRepairInvoice.aspx?ID=" + Request.QueryString["ID"].ToString() + "&isvat=" + status;
            btnPrint.Attributes.Add("onclick", "window.open('" + url + "', '_newtab');return false;");
Posted
Updated 11-Mar-14 1:48am
v2

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900