protected void GridViewHeadText1_RowCommand(object sender, GridViewCommandEventArgs e) {

先宣告
GridViewRow row= (GridViewRow)((Control)e.CommandSource).Parent.Parent;
接下來就可以去取控制項
if (((Button)(row.FindControl("Label_ID1"))).Text.Equals("開放"))
{

}

}

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 法蘭克不要怕 的頭像
    法蘭克不要怕

    法蘭克不要怕

    法蘭克不要怕 發表在 痞客邦 留言(0) 人氣()