• Code ScriptManager Generate

            Code ScriptManager Generate
    
  • sys.application

            If you enabled the Microsoft Ajax Library, a new lifecycle starts on the client
            side. As soon as the browser loads the main script file, MicrosoftAjax.js, the client
            runtime creates a global JavaScript object—the Application object—and
            stores it in a global variable called Sys.Application.This new object becomes the brains of a web page in the browser. Despite its
            name, it plays a role similar to the Page object on the server side. Once the Page
            object is done on the server side, the processing on the client side is delegated to
            Sys.Application.
            <br />
            Providing a centralized place to execute the client code—This goal is reached by
            defining a custom page lifecycle on the client. As you’ll see in a moment,
            the client page lifecycle starts when the browser loads the page and ends
            when the user navigates away from the page or the page is reloaded. When
            each stage in the lifecycle is entered, the Application object raises a corresponding
            event.
            <br>
            Hosting the client components instantiated in the page—Once instantiated, client
            components become children of the Application object and can be easily
            accessed through the Application object. Also, they’re automatically disposed
            by the Application object when the web page is unloaded by the browser.
            <br />
            The primary tenet behind components is code reusability. Components implement
            a well-defined set of interfaces that allows them to interact with other components
            and to be interchanged between applications. Thanks to the base
            interfaces, the code encapsulated by components can change at any time without
            affecting the other processing logic.
            <br />
            The Microsoft Ajax Library provides specialized client classes that simplify the
            authoring of client components. The group of classes related to component
            development is called the client component model and closely mirrors the model in
            use in the .NET framework. In this way, you can write component-oriented client
            applications using JavaScript code.
    
  • javascript delegate callback

    In c#, you can create a delegate like the code below.

  • Inline box

    Inline boxes are laid out in a line horizontally. The horizontal spacing can be adjusted using horizontal padding, borders, and margines. Howerver, vertical padding, borders, and margines will have no effect on the height of a inline box. The horizontal box formed by a line is called a line box, and a line box will always be tall enough for all the line boxes it contains. Howerver, setting the line height can increase the height of this box.

  • style, currentStyle, runtimeStyle

            <p>style reprensent the style attribute of an object. But think of it as javascript object. If an element has no style attribute defined, element.color will be undefined. currentStyle is IE object that attached to an element. In firefox it is not accessible.It is a read only object, so you can get the style no matter how the style is created(either from css style sheet or the style attribute of the object.) runtimeStyle is also IE proprietary object, it is meant to be used for write</p>