void ItemsGrid_Command(Object sender, DataGridCommandEventArgs e)
{ switch(((LinkButton)e.CommandSource).CommandName)
{ case "Delete":
DeleteItem(e);
break; // Add other cases here, if there are multiple ButtonColumns in
// the DataGrid control. default:
// Do nothing.
break; }ms-help://MS.NETFrameworkSDKv1.1.CHS/cpref/html/frlrfsystemwebuiwebcontrolsdatagridclassitemcommandtopic.htm
{ switch(((LinkButton)e.CommandSource).CommandName)
{ case "Delete":
DeleteItem(e);
break; // Add other cases here, if there are multiple ButtonColumns in
// the DataGrid control. default:
// Do nothing.
break; }ms-help://MS.NETFrameworkSDKv1.1.CHS/cpref/html/frlrfsystemwebuiwebcontrolsdatagridclassitemcommandtopic.htm
解决方案 »
- Literal控件
- 各位指教一下Wap(asp.net)手机站点开发都需要学习什么呢?学习的步骤呢
- .net框架设计
- ====如何截取即将发送到客户端的HTML流====
- 数据库问题!!!!!紧急求救!!!马上给分
- URL上自动加了一个随机字符串是怎么回事啊?
- 文件打开和下载的问题.help 线等
- 如何实现在视频播放的同时,文字内容随播放进度滚动?
- asp.netmenu得menuData属性的附值问题。
- 水晶报表 名为 i_pagecount 类型为: IFieldObject 的控件中值?不好意思我只有这点分了!
- 一个小问题
- 关于用DataGrid或Repeater实现多条数据更新的问题高手快来帮忙
这里item.Cells[3].Text就是你要选的那一行的标记内容
{
string sRedirect="<a href='WebForm2.aspx?flag=" + item.Cells[1].Text.ToString()+ "'>" + item.Cells[4].Text + "</a>";
item.Cells[4].Text=sRedirect;
//上面是我的方法,你也可以用你的方法建立超级链接列
}
//在WebForm2用
string flag=Page.Request.QueryString["flag"].ToString();