If you have to provide some services to all users of your website then….

  • Partner links

  • 3 Skype phone Mix & Match 100

    If you have to provide some data or services to all of your web users then best option is to put those data values into applicaiton object. This process will make your application very fast.

    You can use Global.asax  file and can use  following event.  Following code first puts value into a hashtable and then this hash table is added to the applicaiton object of Asp.net. C# code.protected void Application_BeginRequest(Object sender, EventArgs e){

     Hashtable userHash = new Hashtable();

                    foreach (User user in userDetails)
                    {
                        userHash.Add(user.Id, user.UserName);
                    }

                    Application.Add(cachekey, userHash);

    }

    Nokia N95 8GB Black on MM300 AT 3mobile
    I Wan to share this post: These icons link to social bookmarking sites where readers can share and discover new web pages.
    • bodytext
    • del.icio.us
    • Facebook
    • Mixx
    • Google
    • kick.ie
    • Live
    • MyShare
    • IndianPad
    • Reddit
    • StumbleUpon
    • Technorati
    • YahooMyWeb
    • description
    • description

    Tags: , , , , , , ,

    Leave a Reply