How to use ClientScript.RegisterClientScriptBlock with Inline code?
<p>I have aspx page where there is no code behind. Server side Code written inside  tag with runat server attribute. </p>

<p>If i use </p>

<pre><code>ClientScript.RegisterClientScriptBlock(this.GetType(), "Email", "GetEmail();");
</code></pre>

<p>in <code>page_load()</code> event, it just print <code>GetEmail();</code> when page load</p>

<p>My code looks like</p>

<pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
    &lt;head&gt;
        &lt;script type="text/javascript" language="javascript"&gt;
            function GetEmail()
            {
                alert('hi');
            }
        &lt;/script&gt;

    &lt;/head&gt;
    &lt;body&gt;
    &lt;form id="form1" runat="server"&gt;
           Some control here
    &lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;

&lt;script runat="server"&gt;
    protected void Page_Load(object sender, EventArgs e)
    {
ClientScript.RegisterClientScriptBlock(this.GetType(), "Email", "GetEmail();");
}
&lt;/script&gt;
</code></pre>

<p>Thanks in advance.</p>
