ClientClipboard error on pasting string

0
0

Hello, has anyone come across a problem with clientclipboard extension, it’s giving an error message showing in the attached screenshot image and below is the code I’ve used to read text from clipboard.

Async Sub Get_ClipboardString()

Try
Me.Focus()
Dim data = Await ClientClipboard.ReadTextAsync()

Catch ex As Exception
AlertBox.Show(“Error on Copying String”)
End Try

End Sub

  • You must to post comments
0
0

Hi Shabaz,

please check these 3 points. If still not clear please send a runnable test case that shows the issue:

  • Clipboard access requires user interaction (e.g., a button click).

  • The method is called outside an event handler (like Load, Timer, Async Sub without user input).

  • Your site isn’t served from a secure context (HTTPS) — required by most browsers for clipboard access.

Best regards
Frank

 

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.