【发布时间】:2016-08-30 13:18:17
【问题描述】:
Protected Sub GridView_Paga_AT_0_RowCommand(sender As Object, e As GridViewCommandEventArgs)
If e.CommandName = "C_Nif" Then
Dim row As GridViewRow = DirectCast(DirectCast(e.CommandSource, Control).NamingContainer, GridViewRow)
Dim Botao_Nif As ImageButton = TryCast(row.FindControl("ImageButton_C_Nif"), ImageButton)
Dim Nif As String = e.CommandArgument
Botao_Nif.Attributes.Add("onclick", "function copyClipboard(){window.clipboardData.setData('Text'," + Nif + ");CopiedTxt.execCommand('Copy');}")
End If
End Sub
【问题讨论】:
-
有什么问题?
标签: vba gridview copy clipboard rowcommand