string s = e.Item.Cells[0].Text.ToString();
string t = "objOpenerTextBox = window.opener.document.getElementById(\"tbxCustomer\");objOpenerTextBox.value="+s+";window.close()";e.Item.Attributes.Add("onclick",t);这个是grid的databound事件,有没有看到上面的S变量,当S是数字是正常,是字母或汉字就取不到S变量的值,为何?
string t = "objOpenerTextBox = window.opener.document.getElementById(\"tbxCustomer\");objOpenerTextBox.value="+s+";window.close()";e.Item.Attributes.Add("onclick",t);这个是grid的databound事件,有没有看到上面的S变量,当S是数字是正常,是字母或汉字就取不到S变量的值,为何?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货