javascript won't work in asp.net usercontrol
<p>I have this control inside another control 'MyFirstControl'.</p>

<p>I have an alert('test') just to keep my question simple. This alert doesn't show up.
My actual javascript has many functions, but I removed all of them and put this alert just to see if it hits. But it doesn't.</p>

<p>I even tried <code>Page.ClientScript.RegisterStartupScript</code>, didn't work either.</p>

<p>MyDataGrid.ascx</p>

<pre><code>&lt;%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyDataGrid.ascx.cs" Inherits="MyAsp.Controls.MyDataGrid" %&gt;

&lt;script language="javascript"&gt;
alert('test');
&lt;/script&gt;

    &lt;telerik:RadGrid runat="server" ID="Grid" AutoGeneratecolumns="false"&gt;
      &lt;MasterTableView EditMode="InPlace"&gt;
        &lt;columns&gt;
          &lt;telerik:GridBoundcolumn DataField="column1" HeaderText="column1"&gt;
          &lt;/telerik:GridBoundcolumn&gt;
          &lt;telerik:GridBoundcolumn DataField="column2" HeaderText="column2"&gt;
          &lt;/telerik:GridBoundcolumn&gt;
        &lt;/columns&gt;
      &lt;/MasterTableView&gt;
      &lt;ClientSettings&gt;
        &lt;Selecting AllowRowSelect="true"&gt;&lt;/Selecting&gt;
        &lt;Scrolling AllowScroll="true" UseStaticHeaders="true"&gt;&lt;/Scrolling&gt;
      &lt;/ClientSettings&gt;
    &lt;/telerik:RadGrid&gt;
</code></pre>
