獲取gridview前臺綁定的服務器控件屬性值

                                            ImageUrl="~/images/com/dg_edit.gif" onclick="Edit_Clik">



   protected void Edit_Clik(object sender, EventArgs e)
        {
            ImageButton ctr = sender as ImageButton;
            String id = ctr.Attributes["_ID"];


            //this._caseResultService.DeleteCaseResult(id);
            Response.rediret("....?id={0}",id);

           // this.GridSearch.Search();
        }

或者用於頁面間傳值

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章