---
title: "TextBox duplicates pasted content"  
description: "TextBox duplicates pasted content"  
author: "Royce Roy"  
published: 2014-08-28  
updated: 2014-08-28  
canonical: https://www.mindstick.com/forum/2194/textbox-duplicates-pasted-content  
category: "asp.net"  
tags: ["asp.net"]  
reading_time: 1 minute  

---

# TextBox duplicates pasted content

I am using a FreeTextBox:

```
<FTB:FreeTextBox ID="txtFreeTextBox"
RemoveServerNameFromUrls="false"
ToolbarLayout="ParagraphMenu,FontFacesMenu,FontSizesMenu,FontForeColorsMenu|Bold,Italic,Underline,Strikethrough;Superscript,Subscript,RemoveFormat|JustifyLeft,JustifyRight,JustifyCenter,JustifyFull;BulletedList,NumberedList,Indent,Outdent;CreateLink,Unlink,InsertImageFromGallery,InsertRule,InsertTable|Cut,Copy,Paste;Undo,Redo,Print"
runat="Server" Width="100%"
BackColor="239,239,240"ImageGalleryUrl="../../ftb.imagegallery.aspx?rif=Public/RootImages/&cif=Public/RootImages/"></FTB:FreeTextBox>
```

The [problem](https://yourviews.mindstick.com/view/81399/tackling-the-problem-of-unemployment-during-corona-pandemic) is that when I paste into it, it pastes it two times. Is there something to solve this?

## Replies

### Reply by Sumit Kesarwani

Hi Royce,

```
<script type="text/javascript">   
FTB_FreeTextBox.prototype.CancelEvent = function (ev) {        try{           
ev.preventDefault();           
ev.stopPropagation();        }        catch (e) {            if(FTB_Browser.isIE) {               
ev.cancelBubble = true;               
ev.returnValue = false;            }        }    };</script>
```


---

Original Source: https://www.mindstick.com/forum/2194/textbox-duplicates-pasted-content

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
