select
各行のフィールドを持つ gridView があります。最初の行を選択すると gamers.aspx ページにリダイレクトされますが、2 番目の行を選択すると audio.aspx ページに送信されます。
GridViewRow row = GridView1.SelectedRow;
Response.Redirect("gamers.aspx? EntityID=" + row.Cells[1].Text);
GridViewRow row1 = GridView1.SelectedRow;
Response.Redirect("audio.aspx? EntityID=" + row.Cells[2].Text);
これは私がやったことですがselect
、gridView のいずれかの行をクリックすると、毎回 gamers.aspx に送られます。