title: C# load default data into CKEDITOR
body: <p>I am currently looking for a way to load data into an instance of CKEDITOR using C#
  the examples I've seen online use jquery, but I need it for c#</p>
  
  <p>my ckeditor looks like so:</p>
  
  <pre><code>&lt;asp:TextBox ID="txtArt" runat="server" &gt;&lt;/asp:TextBox&gt;
  
      &lt;script&gt;
          CKEDITOR.replace('&lt;%=txtArt.ClientID %&gt;', {
              htmlEncodeOutput: false,
              height: '400px',
              width: '500px',
              resize_enabled: false,
              removePlugins: 'elementspath'
          });
  &lt;/script&gt;
  </code></pre>
  
  <p>and I'm using this code in c#:</p>
  
  <pre><code>        public String Value
      {
          get
          {
              EnsureChildControls();
              return txtArt.Text;
          }
          set
          {
              EnsureChildControls();
              txtArt.Text = value;
          }
      }
      protected override void OnInit(EventArgs e)
      {
          if (!Page.ClientScript.IsClientScriptIncludeRegistered("ckeditor.js"))
          {
              Page.ClientScript.RegisterClientScriptInclude("ckeditor.js", "/ckeditor/ckeditor.js");
          }
          base.OnInit(e);
      }
  </code></pre>
  
  <p>I know that loads the js file, and will save any text in the block, but how do I set default data in said block?</p>
  
  <p>I've tried the normal</p>
  
  <pre><code>txtArt.Text = "Hello";
  </code></pre>
  
  <p>but that doesn't work.
  it loads up with empty fields.
  is there a way to do something like <a href="https://stackoverflow.com/questions/2108354/how-to-add-data-to-ckeditor-using-jquery">How to add data to CKEditor using JQuery</a> ?
  or <a href="https://stackoverflow.com/questions/14150604/how-to-load-data-into-ckeditor-onload">How to load data into ckeditor onload</a> ?</p>
  
  <p>Please be advised, I'm trying to load data from a database. so my code on the .cs page is the code I need for the loading.</p>