在ItemDataBound事件中加入
If e.Item.ItemIndex >= 0 Then
e.Item.Cells(0).Text = "<a href=""facilityRolesManipulate.aspx?Comp_ID=" + e.Item.Cells(1).Text + "&Role=" + e.Item.Cells(3).Text + """>"+e.Item.Cells(0).Text +"</a>"
End If这是vb.net,你自己翻译成C#把
If e.Item.ItemIndex >= 0 Then
e.Item.Cells(0).Text = "<a href=""facilityRolesManipulate.aspx?Comp_ID=" + e.Item.Cells(1).Text + "&Role=" + e.Item.Cells(3).Text + """>"+e.Item.Cells(0).Text +"</a>"
End If这是vb.net,你自己翻译成C#把
解决方案 »
- wpf 获取元素名称
- 程序无响应 cpu占用为0 任务管理器中有两个form, 请问如何解决
- 部署问题!!!!!!!!!!!
- C#Random的疑问
- 如何实现数据字典过滤:Dictionary<IWBTcpClient, WBUserInfo>
- 两个关于excel操作以及画图的问题,请进来看 C#
- 从未学过C# net哪位介绍一本经典的0起步教程。谢谢
- 如何控制TreeView节点默认状态下节点闭合的!
- C#发布程序管理问题
- #####请问如何在窗体上放Flash动画,100分#####
- arraylist 中的项如何进行随机排序?
- window 2003上面为什么装不上vs.net 2003
怎么把 超链接字段 选中行的各个值(id,title)传给下一个页面
datagrid中的哪个方法和属性对应这个传递呀
我帮你顶!!!!!!
在后台写ItemDataBound事件,类似楼上,只不过先把id,title取出
if (e.Item.ItemIndex >= 0)
e.Item.Cells[0].Text = "<a href='facilityRolesManipulate.aspx?Comp_ID=" + e.Item.Cells[1].Text + "&Role=" + e.Item.Cells[3].Text + "'>"+e.Item.Cells[0].Text +"</a>"
OK了,结帖给分吧
to jaxk
一行中包含id title
我想传过去显示 现在第二页没有反应呀!!?