Access PlaceHolder from a method
<p>I am trying to do this:</p>

<hr>

<pre><code>public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {
        trida_kalendar kal1 = new trida_kalendar();
        kal1.SetID(5);
        Response.Write(kal1.GetID());

        trida_kalendar kal2 = new trida_kalendar();
        stranka.Controls.Add(kal2.getcal());
    }

    private class trida_kalendar {
        private int pint = -1;

        public Calendar getcal() {
            Calendar pokus = new Calendar();
            pokus.ID = "pokus1";
            pokus.Width = 500;
            pokus.SelectionChanged += new EventHandler(pokus__SelectionChanged);
            return pokus;
        }

        public void pokus__SelectionChanged(object sender, EventArgs e)
        {
            // But this doesnt work :-( 
            // It shows message: Cannot access a non-static member of outer type _Default 
            // via nested _Default.trida_kalendar

            /*
            Calendar kolo = (Calendar)stranka.FindControl("kalendar1");
            string hh = kolo.SelectedDate.ToShortDateString();
            Response.Write("Cosi" + hh);
            */

        }

        public int GetID() {
            return pint;
        }

        public void SetID(int id) {
            pint = id;
        }
    }
}
</code></pre>

<hr>

<pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head runat="server"&gt;
    &lt;title&gt;Untitled Page&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;form id="form1" runat="server"&gt;
    &lt;p&gt;pokus&lt;/p&gt;

    &lt;asp:PlaceHolder ID="stranka" runat="server" /&gt;
    &lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<hr>

<p>But this doesnt work :-( It shows message: </p>

<blockquote>
  <p>Cannot access a non-static member of
  outer type _Default via nested
  _Default.trida_kalendar</p>
</blockquote>

<p>Can you help me please?</p>
