Wednesday, 4 July 2012

Count No of users- session Count -global.asax



    void Application_Start(object sender, EventArgs e)
    {
        // Code that runs on application startup
        Application["count"] = 0;
    }
   
    void Application_End(object sender, EventArgs e)
    {
        //  Code that runs on application shutdown
        Application["count"] = (int)Application["count"] - 1;
    }
       

No comments:

Post a Comment