title: Adding dynamically CalendarExtender to a WebForm in CodeBehind
body: <p>I'm trying to add dynamically a control <code>CalendarExtender</code> from <strong>ASP.NET Ajax Toolkit</strong> to the WebForm page. When I'm accessing the WebPage, where I've coded this control to be added - I've got an error:</p>
  
  <p><strong>MissingManifestResourceException</strong></p>
  
  <p><em>Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure "AjaxControlToolkit.Properties.Resources.NET4.resources" was correctly embedded or linked into assembly "AjaxControlToolkit" at compile time, or that all the satellite assemblies required are loadable and fully signed.</em></p>
  
  <p>Piece of code, where does occur the error:</p>
  
  <pre><code>// set User birthdate
  Label labelUserBirthdate = new Label();
  labelUserBirthdate.ID = "editableLabelSecondName";
  labelUserBirthdate.Text = "Bithday: ";
  
  TextBox editableBirthdate = new TextBox();
  editableBirthdate.ID = "editableTextBoxBirthday";
  editableBirthdate.CssClass = "round default-width-input";
  
  CalendarExtender birthdateCalendar = new CalendarExtender();
  birthdateCalendar.ID = "calendarExtender" + Guid.NewGuid().ToString();
  birthdateCalendar.TargetControlID = "editableTextBoxBirthday";
  
  this.contentViewWebdata.Controls.Add(labelUserBirthdate);
  this.contentViewWebdata.Controls.Add(Page.ParseControl("&lt;br /&gt;"));
  this.contentViewWebdata.Controls.Add(editableBirthdate);
  this.contentViewWebdata.Controls.Add(birthdateCalendar);
  this.contentViewWebdata.Controls.Add(Page.ParseControl("&lt;br /&gt;"));
  </code></pre>
  
  <p>Full code (problem does occur on <code>SetSceneEditableUserInfo()</code> ):</p>
  
  <ul>
  <li>ASPX Markup: <a href="http://ideone.com/8deRFr" rel="nofollow">http://ideone.com/8deRFr</a></li>
  <li>CodeBehind: <a href="http://ideone.com/yOOyGK" rel="nofollow">http://ideone.com/yOOyGK</a></li>
  </ul>
  
  <p>I have searched in Web such topics and other people do the same things:</p>
  
  <ul>
  <li>just include namespace with AjaxControlToolkit</li>
  <li>Make new instance of the CalendarExtender</li>
  <li>set ID</li>
  <li>set Target ID</li>
  </ul>
  
  <p>As you see I'm doing the similar stuff. Why does it argue on Resources? I don't understand:</p>
  
  <ul>
  <li>the correct DLL is included</li>
  <li>the namespace was included in CodeBehind too.</li>
  </ul>
  
  <p>How can I fix my issue?</p>