How to manage the state of the application in ASP.NET 2.0?
By in ASP.NET on Nov 29 2007
  • Elias  Hossain
    Feb, 2008 23

    First Definition
    Delegate is a class that can hold a reference to a method or a function.
    Event works with source and listener methodology. So, listeners who are interested in receiving some events they subscribe to the source. Once the subscription is done the source rises events to its entire listener when needed.

    Now Difference
    1. Actually, events use delegates in bottom. But they add an extra layer on the delegates. thus forming the publisher and subscriber model.
    2. As delegates are function to pointers they can model across any clients. So any of the clients can add or remove events, which can be pretty confusing. But event give the extra protection by adding the layer and making it a publisher and subscriber model.

    More important .NET Questions & Answer

    • 0
  • Elias  Hossain
    Feb, 2008 23

    First Defination
    Delegate is a class that can hold a reference to a method or a function.
    Event works with source and listener methodology. So, listeners who are interested in receiving some events they subscribe to the source. Once the subscription is done the source rises events to its entire listener when needed.

    Now Difference
    1. Actually, events use delegates in bottom. But they add an extra layer on the delegates. thus forming the publisher and subscriber model.
    2. As delegates are function to pointers they can model across any clients. So any of the clients can add or remove events, which can be pretty confusing. But event give the extra protection by adding the layer and making it a publisher and subscriber model.

    More important .NET Questions & Answer

    • 0
  • Elias  Hossain
    Feb, 2008 23

    First Defination
    Delegate is a class that can hold a reference to a method or a function.
    Event works with source and listener methodology. So, listeners who are interested in receiving some events they subscribe to the source. Once the subscription is done the source rises events to its entire listener when needed.

    Now Difference
    1. Actually, events use delegates in bottom. But they add an extra layer on the delegates. thus forming the publisher and subscriber model.
    2. As delegates are function to pointers they can model across any clients. So any of the clients can add or remove events, which can be pretty confusing. But event give the extra protection by adding the layer and making it a publisher and subscriber model.

    More important .NET Questions & Answer

    • 0
  • Elias  Hossain
    Feb, 2008 23

    First Defination
    Delegate is a class that can hold a reference to a method or a function.
    Event works with source and listener methodology. So, listeners who are interested in receiving some events they subscribe to the source. Once the subscription is done the source rises events to its entire listener when needed.

    Now Difference
    1. Actually, events use delegates in bottom. But they add an extra layer on the delegates. thus forming the publisher and subscriber model.
    2. As delegates are function to pointers they can model across any clients. So any of the clients can add or remove events, which can be pretty confusing. But event give the extra protection by adding the layer and making it a publisher and subscriber model.

    More important .NET Questions & Answer

    • 0
  • Prabhu
    Feb, 2008 13

    You can manage the state of the application in ASP.NET in the following two major category.

    1) Client-side state management
        Cookies
        View State
        Hidden Fields
        Query String

    2) Server-side state management
        Application State Object
        Session State Object
        Database support


    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS