c# Repeater中CommandArgument传多个参数
2010-05-28 12:24
246 查看
<ItemTemplate>
<div onmouseover="javascript:this.style.cursor='hand'" style="width:70px; line-height:20px;background-color:#CCCCCC;border:solid 1px #000000;"> <asp:LinkButton ID="LinkButton1" CommandName="del" CommandArgument='<%# Eval("Parent_Id")+","+Eval("Id") %>' runat="server">删除</asp:LinkButton></div>
</ItemTemplate>
protected void GVSecondType_RowCommand(object sender, GridViewCommandEventArgs e)
{
string cmdName = e.CommandName;
if (cmdName == "del")
{
string[] estr = e.CommandArgument.ToString().Split(',');
int Parent_Id = Convert.ToInt32(estr[0]);
int TypeId = Convert.ToInt32(estr[1]);
}
}
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/y_h_t/archive/2009/11/18/4827980.aspx
<div onmouseover="javascript:this.style.cursor='hand'" style="width:70px; line-height:20px;background-color:#CCCCCC;border:solid 1px #000000;"> <asp:LinkButton ID="LinkButton1" CommandName="del" CommandArgument='<%# Eval("Parent_Id")+","+Eval("Id") %>' runat="server">删除</asp:LinkButton></div>
</ItemTemplate>
protected void GVSecondType_RowCommand(object sender, GridViewCommandEventArgs e)
{
string cmdName = e.CommandName;
if (cmdName == "del")
{
string[] estr = e.CommandArgument.ToString().Split(',');
int Parent_Id = Convert.ToInt32(estr[0]);
int TypeId = Convert.ToInt32(estr[1]);
}
}
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/y_h_t/archive/2009/11/18/4827980.aspx
相关文章推荐
- c# Repeater中CommandArgument传多个参数
- c# Repeater中CommandArgument传多个参数
- c# Repeater中CommandArgument传多个参数
- GridView中CommandArgument如何传多个参数
- CommandArgument 绑定多个 参数
- LinkButton的CommandArgument 传递多个参数
- GridView CommandArgument 绑定多个参数
- C#中如何获取其他进程的命令行参数 ( How to get other processes's command line argument )
- C# LinkButton 带参数的OnCommand事件的写法
- 通过CommandArgument传递多个参数的尝试
- C#中如何获取其他进程的命令行参数 ( How to get other processes's command line argument )
- C#中如何获取其他进程的命令行参数 ( How to get other processes's command line argument )
- GridView使用DataKeyNames的例子 & CommandArgument传递多个参数 & 获取GridView编辑状态下单元格里的值
- 通过CommandArgument传递多个参数的尝试
- C# LinkButton 带参数的OnCommand事件的写法
- LinkButton中使用CommandArgument传递参数
- CommandArgument传多个参数
- GridView之实用第一招:CommandArgument 绑定多个参数
- C#数据库编程入门 使用command参数对象
- CommandArgument如何传多个参数