Control, MasterType, PreviousPageType, OutputCache - Uses - Basic concept of ASP.NET

Q.  Match the following List 1 with List 2:

a. Control ------------------ i. Controls the output caching policies of a page or user control.
b. MasterType ------------ ii. Page directive uses with user controls.
c. PreviousPageType ---- iii. Enables an ASP.NET page to work with a postback from another page in the application.
d. OutputCache ----------- iv. Associates a class name to a page to get references or members contained within the specified master page.

- Published on 28 Jul 15

a. a-ii, b-i, c-iv, d-iii
b. a-ii, b-iv, c-i, d-iii
c. a-ii, b-i, c-iii, d-iv
d. a-ii, b-iv, c-iii, d-i

ANSWER: a-ii, b-iv, c-iii, d-i
 

    Discussion

  • Brijesh   -Posted on 25 Sep 15
    User controls uses a @ Control directive. User controls do not include the html, body, and form elements around the content. Control directive is used with user control. The file extension is .ascx for user control.
    MasterType is a directive that is used to associates a class name to a page to get references or members contained within the specified master page.
    PreviousPageType enables an ASP.NET page to work with a postback from another page in the application.
    Example:
    <%@ PreviousPageType VirtualPath=”~/ButtonSearchTyped.aspx” %>
    OutputCache controls the output caching policies of a page or user control. You enable Page Output Caching by adding an <%@ OutputCache %> directive to a page.

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)