前台:
后台
protected void DataList1_ItemCommand(object source, DataListCommandEventArgs e)
{
if (string.Equals(e.CommandName, "Detail"))
{
// 取出ID
string id = e.CommandArgument;
// 跳转到令一画面
Response.Redirect("xxx.aspx?ID=" + id);
}
}