ASPX not accessing Javascript.js
<p>Doing some javascript for the first time.
I'm playing around with a sessiontimeout and it was working well while I had the code within the .aspx page.
Next stape was to put the code in a .js page. So here's my current lineup.</p>

<p><strong>Script.aspx.js</strong></p>

<pre><code>    var iddleTimeoutWarning = null;
    var iddleTimeout = null;
function pageLoad() 
{     
    if (iddleTimeoutWarning != null)
        clearTimeout(iddleTimeoutWarning);
    if (iddleTimeout != null)
        clearTimeout(iddleTimeout);    
    var millisecTimeOutWarning = &lt;%= int.Parse(System.Configuration.ConfigurationManager.AppSettings["SessionTimeoutWarning"]) * 60 * 1000 %&gt;;
    var millisecTimeOut = &lt;%= int.Parse(System.Configuration.ConfigurationManager.AppSettings["SessionTimeout"]) * 60 * 1000 %&gt;; 
    iddleTimeoutWarning = setTimeout("DisplayIddleWarning()", millisecTimeOutWarning);
    iddleTimeout = setTimeout("TimeoutPage()", millisecTimeOut);
} 

function DisplayIddleWarning() 
{                
    document.getElementById("LblWarning").innerHTML = "Warning Message";
} 

function TimeoutPage() 
{                   
    __doPostBack('FiresAutoIdle','');
}  
</code></pre>

<p>ASPX page (Pretty sure error is here since the code in .js page works)</p>

<pre><code>&lt;asp:ScriptManager ID="ScriptManager1" runat="server"&gt;
        &lt;Scripts&gt;            
            &lt;asp:ScriptReference Path="Scripts/Script.aspx.js"/&gt;
        &lt;/Scripts&gt;
&lt;/asp:ScriptManager&gt;
</code></pre>

<p>I also have some code lines in web.config to set keys SessionTimeout and SessionTimeoutWarning.</p>

<p>So, any idea on where's the glitch? Things used to run, now they won't.</p>

<p><strong>EDIT</strong></p>

<ol>
<li>I'm using a script manager for a quick handling of the necessary ASP.NET AJAX components to enable partial postback. I need __doPostBack.</li>
<li>I found out if a js function is named pageLoad(), the function will activate when the page loads or when a partial postback. Just what I need.</li>
</ol>

<p>So, asp.nex page is not loading pageLoad() function from .js.</p>
