Gridview把行号绑定到链接中
时间:2010-11-22 来源:小鹿
<%# "?opt=modiuser&id="+Eval("id")+"&rowid="+Container.DataItemIndex %>
CommandArgument='<%# DataBinder.Eval(Container.DataItem,"NumberId") %>'
按钮接收参数
protected void btn_index_Click(object sender, EventArgs e)
{
Button btnCreate = sender as Button;
string id = btnCreate.CommandArgument;
Response.Write(id);
}
相关阅读 更多 +