Hi,
I am trying to paste the image on rich text box from clipboard. Below is the code, but I am not sure how will I invoke it from code behind.
Below is the front end code:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register TagPrefix="RTB" Namespace="RichTextBoxControl" Assembly="RichTextBox" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script language="javascript" type="text/javascript">
functiion test()
{
cursor_selection = document.getElementById('MessageTextBox').contentWindow.document.selection.createRange();
cursor_selection.execCommand('Paste');
}
...
Go to the complete details ...