Application State Global.asax
<p>Hy guys, Im trying to firure out the Global.asax file... I was learning how to code Web Apps in Visual studio 2010 and now i have Visual studio 2013. I cant find the global.asax.cs file where I would write application start, session end, session start conde.</p>

<p>I found this solution to the problem but im still getting this error. pls help</p>

<p>'jquery' is not a valid script name.  The name must end in '.js'.</p>

<pre><code>&lt;%@ Application Language="C#" %&gt;
&lt;%@ Import Namespace="System.ComponentModel.DataAnnotations" %&gt;
&lt;%@ Import Namespace="System.Web.Routing" %&gt;
&lt;%@ Import Namespace="System.Web.DynamicData" %&gt;
&lt;%@ Import Namespace="System.Web.UI" %&gt;



&lt;script Language="C#" RunAt="server"&gt;

    void Application_Start(object sender, EventArgs e) 
    {
        //Create application state variables
        Application["TotalApplications"] = 0;
        Application["TotalUserSessions"] = 0;

        //Increment TotalApplications by 1
        Application["TotalUserSessions"] = (int)Application["TotalUserSessions"] + 1;
    }

    void Session_Start(object sender, EventArgs e)
    { 
        //Increment TotalUserSessions by 1
        Application["TotalUserSessions"] = (int)Application["TotalUserSessions"] + 1;
    }

    void Session_End(object sender, EventArgs e)
    { 
        //Decrement TotalUserSessions by 1
        Application["TotalUserSessions"] = (int)Application["TotalUserSessions"] - 1;
    }

&lt;/script&gt;
</code></pre>