using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Telerik.Web.UI;
using Telerik.Web.UI.Editor.DialogControls;

public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            radEditor.Content = "<span><P>Another week closer to the end of a year everyone will be very glad to see the back of, for the record the NZX50 closed modestly down for the week, -22 at 2,655. Large cap stocks mainly led the way this week, with APN, The Warehouse, Air NZ, Contact Energy and Vector comprising the five strongest performers whilst the bottom end of the field was a rather unseemly race down between Pyne Gould Wrightsons and its progeny, NZ Farming Systems.<br/><br/></span>";
        }
    }
    
    protected void AjaxRequest(object sender, AjaxRequestEventArgs e)
    { 
        switch (e.Argument)
        {
            case "SaveContent": 

                //Here I want to get the selected Text.
                string str = txtSharedContent.Text;

                break;  
        }

    }
    
}