코드에서 수동으로 rowcreated에 생성 된 이미지 버튼이 있습니다.내 rowcommand에 내 gridview에 대한 명령 이름이 없습니다.
Dim deletecshr As ImageButton = DirectCast(e.Row.FindControl("deletecshr"), ImageButton)
deletecshr.CommandName = "Delete"
deletecshr.CommandArgument = emp_no & "," & e.Row.Cells(2).Text & "," & e.Row.Cells(1).Text & "," & cashier_no & "," & manager_no
는 내가 명령 이름과 인수를 설정합니다 gridveiw_rowdatabound에서
Dim deletecshr As New ImageButton
deletecshr.ImageUrl = "\images\bttnDeletemini.gif"
deletecshr.ToolTip = "This Will Delete All Cashiers"
deletecshr.ID = "deletecshr"
나는 다음 있습니다.
그러나 rowcommand에서는 commandname 또는 그 밖의 것이 없습니다. 내가 도대체 뭘 잘못하고있는 겁니까? 나는 이것이 이전에 효과가 있었다고 생각한다.
RowCommand 이벤트를 첨부했는지 기억해 봤습니까? –
무엇을 의미합니까? – Eric