Insert Image at Cursor position

Topics: ASP.NET 2.0
Mar 14, 2011 at 10:10 PM
Edited Mar 14, 2011 at 10:13 PM


Is it possible to insert an image or video at the last position of the caret cursor instead of to the end of the text area?

I've been looking at the EditPage.aspx.cs

line: this.txtContent.Text += img; 

was wondering whether we can send the last known caret position to the button click method so we can insert the img string at that position within the string?

Many thanks