protected void txtFILESAVEFEE_TextChanged(object sender, EventArgs e)
    {
        TextBox t = (TextBox)sender;
        int Index = ((GridViewRow)(t.NamingContainer)).RowIndex;//获得行号
        GridViewRow gRow = GridView1.Rows[Index];
        TextBox tb = (TextBox)gRow.FindControl("txtFILESAVEFEE");

        Response.Write("<script>alert('" + tb.Text.ToString() + "')</script>");
    }
}


本文转载:CSDN博客