请教高手们:在线等。asp.net+c#中,有一个DataGrid,绑定后,我要实现的是每一个cell都生成一个链接,并将本身值传到下一页,该如何做? 请教高手们:asp.net+c#中,有一个DataGrid,绑定了n行n列,现在我要实现的是每一个cell都生成一个链接,并将本身值传到下一页,该如何做?多谢个位,帮帮忙,马上要交任务了,还没实现。帮帮忙! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 不能在DataGrid的属性生成器里做,因为数据是动态绑定的。 <DIV align="center"><asp:DataGrid id="dgAllNews" runat="server" Width="579px" AllowCustomPaging="true" PageSize="26" AllowPaging="false" CellPadding="3" AutoGenerateColumns="False" DataKeyField="Aid" OnItemCommand="NewsBehavior"><Columns><asp:ButtonColumn Text="删除" CommandName="Delete"></asp:ButtonColumn><asp:HyperLinkColumn Text="修改" DataNavigateUrlField="Aid" DataNavigateUrlFormatString="editNewsDetail.aspx?Aid={0}"></asp:HyperLinkColumn></Columns></asp:DataGrid></DIV> 把ButtonColumn全换成HyperLinkColumn Grindview更新失败的问题 读取数据库数据写入xml文件 取时间里的年月日 |M| SQL语句参数多的话 多家帮我看看这样的方法要怎么实现 ------ 谢谢 在线 关于DataGrid一个简单的小问题 怎么使用SQL2000的视图?(VB) 怎么在table里触发事件 请教如何得到System32目录?(C#) asp.net 大家用什么工具???? VS。NET 或是什么别的工具!!怎么排版页面?? 关于Html.Raw无法显示图片的问题 编译器错误信息?????????? 总结:在.net中实现javascript的confirm功能
<asp:DataGrid id="dgAllNews" runat="server" Width="579px" AllowCustomPaging="true" PageSize="26" AllowPaging="false" CellPadding="3" AutoGenerateColumns="False" DataKeyField="Aid" OnItemCommand="NewsBehavior">
<Columns>
<asp:ButtonColumn Text="删除" CommandName="Delete"></asp:ButtonColumn>
<asp:HyperLinkColumn Text="修改" DataNavigateUrlField="Aid" DataNavigateUrlFormatString="editNewsDetail.aspx?Aid={0}"></asp:HyperLinkColumn>
</Columns>
</asp:DataGrid></DIV>