string conid=e.Item.Cells[2].Text.ToString();
e.Item.Cells[3].Attributes.Add("onclick","window.open('HDetail.aspx?contractid"+conid+"','','height=410,width=350,top=105,left=250,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no')");
e.Item.Cells[3].Attributes.Add("onclick","window.open('HDetail.aspx?contractid"+conid+"','','height=410,width=350,top=105,left=250,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no')");
解决方案 »
- 如何从一串字符串中提取数字
- 后台SQL 数据库 存储过程问题
- 如何调用msi文件,并赋给其参数、得到安装进度以及信息
- 帮小弟看看
- 我的机器的GHO文件克隆包被病毒毁坏,我想问,是否有人利用病毒有目标的侵入我的机器搞破坏?他们是如何利用病毒搞破坏的,只有知道了这一点,才能做到有效的防范,因为有时防病毒软件防不住。
- 各位师兄能帮我看看吗?关于用SQL查询时间段的问题!
- 求Crystal Reports for .NET 电子版!!
- 如何拦截POP数据包,并在其中加入指定邮件头?(有原理就给分)
- 求一个比较好的MVC 权限控制的思路或者核心代码
- VS2013怎样才可以编译XP系统软件?
- 关于C#项目的框架
- 新手请教:菜单问题
e.Item.Cells[3].Attributes.Add("onclick","window.open('HDetail.aspx?contractid"+conid(这个地方修改了)+"','','height=410,width=350,top=105,left=250,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no')");
string conid=e.Item.Cells[0].Text.ToString();
e.Item.Cells[3].Attributes.Add("onclick","window.open('HDetail.aspx ?contractid="+conid+"','','height=410,width=350,top=105,left=250,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no')");
上面的语句能显示正确的值,下面的就不行了。抱错来得..
string conid=e.Item.Cells[3](此处修改,只能是零才正确显示,该怎么办>).Text.ToString();
e.Item.Cells[3].Attributes.Add("onclick","window.open('HDetail.aspx?contractid="+conid+"','','height=410,width=350,top=105,left=250,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no')");