Call javascript function on page_load event
<p>In asp.net website, inside <strong>.aspx</strong> i have following code</p>

<pre><code>&lt;script type="text/javascript"&gt;
    function callme(option) {
        document.getElementById("t1").value = option;
    }
&lt;/script&gt;
&lt;div id="content" runat="server"&gt;&lt;/div&gt;

&lt;input type="text" id="t1" /&gt;
</code></pre>

<p>On code behind file inside <strong>Page_Load</strong>:</p>

<pre><code>content.InnerHtml = MyClassObject.MyMethod(...);
</code></pre>

<p>Inside <strong>MyClass</strong>:</p>

<pre><code>public String MyMethod(...)
{
   ... //some code
   String str1 ="&lt;select id=\"s1\" onchange=\"callme(this.value)\"&gt;" +
                    "  &lt;option value=\"1\"&gt;One&lt;/option&gt;"+
                    "  &lt;option value=\"2\"&gt;Two&lt;/option&gt;" +
                    "  &lt;option value=\"3\"&gt;Three&lt;/option&gt;" +                          
                    "&lt;/select&gt;";
   ... // some code
   return str1;
</code></pre>

<p>Whenever i select any option from dropdownlist it reflects its value inside the textbox t1.
But at page load the textbox remains empty. I cannot use default value as the values of the dropdownlist are changing at runtime.
How can I add first value of dropdownlist to textbox t1 on page load?</p>
