在哪个页面事件我可以获得复选框检查值? [英] On Which Page Event I Can Get Checkbox Checked Value ?

查看:89
本文介绍了在哪个页面事件我可以获得复选框检查值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

i想知道我可以在哪个活动中获取是否取消复选框?



目前我在外部添加属性!ispostback在一个按钮上创建一个javascript事件,但工作正常,但我想将复选框检查的值作为查询字符串传递,即使选中它也始终为false。





  bool  status = chkIsVatApply .Checked; 
string url = PrintRepairInvoice.aspx? ID = + Request.QueryString [ ID]。ToString()+ < span class =code-string> & isvat = + status;
btnPrint.Attributes.Add( onclick window.open(' + url + ','_ newtab'); return false;);

解决方案

可能是这个链接帮助你...

http://msdn.microsoft.com/en -us / library / ms178472.aspx [ ^ ]

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.


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;");

解决方案

may b this link help u...
http://msdn.microsoft.com/en-us/library/ms178472.aspx[^]


这篇关于在哪个页面事件我可以获得复选框检查值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆