在itemdatabound事件中加入:
string hhh = DataBinder.Eval(e.Item.DataItem, "ContractName").ToString();
e.Item.Attributes.Add("onclick", "window.open('aaa.aspx?aaa="+hhh+"')") ;
string hhh = DataBinder.Eval(e.Item.DataItem, "ContractName").ToString();
e.Item.Attributes.Add("onclick", "window.open('aaa.aspx?aaa="+hhh+"')") ;
解决方案 »
- 帮我看看这是什么问题?
- hyperlink 能否控制链接窗体的大小
- tablecell鼠标事件
- |M| 第七贴 学习URL改写和相关知识 奇怪的问题本来在我的文件系统中测试是OK的,但我在IIS中加了网站就不行了
- ext:Window 的<Content> ext:Panel中加入用户控件
- 尝试使用WScript.Shell打开客户端的可执行文件
- 新手的问题
- asp2.0 gridview绑定
- 今天高兴,散10分,来者先得 ^_^.....
- 三层结构中大家是通过什么方式来访问各层的 ?
- 关于用户控件的属性,帮帮忙,
- 想让RangeValidator 控件的error message能够显示不同的信息
ppp、ccc可以是其他列或数据库取出的值。
HeaderText="ContractName"></asp:HyperLinkColumn>