0
什麼是錯在此代碼這段代碼有什麼不對?
我有一個Imagebutton2在gridview的,其命令名是XXX,我已經加入modalpopup extendar是Panel2與ImageButton2我想當圖像按鈕2被點擊,則modalpopup將顯示並選自檢索值GridView行到面板1的literal3控件,它充當gridview的modalpopup控件?
Protected Sub GridView1_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles GridView1.RowCommand
Dim myrow As GridViewRow = CType(CType(e.CommandSource, Control).NamingContainer, GridViewRow)
Dim index As Integer = Convert.ToInt32(e.CommandArgument)
If e.CommandName = "xxx" Then
Dim lab5 As Label = DirectCast(myrow.FindControl("Label5"), Label)
Dim lit3 As Literal = Me.Panel2.FindControl("Literal3")
lit3.Text = lab5.Text
End If
End Sub
你可能會得到一個更好的線索,如果你刪除'在錯誤恢復下一個'... – Kobi 2011-03-16 07:43:25
我認爲你的鍵盤缺少'。'和','鍵。 – mdm 2011-03-16 08:20:33
你得到的錯誤是什麼... – 2011-03-16 08:35:11