由幕白兄给的
在Repeater中取主键的值:
DataRowView row = (DataRowView)e.Item.DataItem;
dg.DataSource = MovieOrder.SearchList(Convert.ToInt32(row["MovieID"]));
这个在rpt_Movie_ItemDataBound事件中可行
但是在rpt_Movie_ItemCommand却不行
我换成DataRow row = (DataRow)e.Item.DataItem;也不行我的数据源是:DataTable
在Repeater中取主键的值:
DataRowView row = (DataRowView)e.Item.DataItem;
dg.DataSource = MovieOrder.SearchList(Convert.ToInt32(row["MovieID"]));
这个在rpt_Movie_ItemDataBound事件中可行
但是在rpt_Movie_ItemCommand却不行
我换成DataRow row = (DataRow)e.Item.DataItem;也不行我的数据源是:DataTable
</ItemTemplate>
{
Response.Write(e.CommandArgument+"*****");
}
但是我的
CheckBox关没有 CommandArgument这个项啊