Home
6.
What's the difference between a ContentPlaceHolder and a Contentcontrol?

The ContentPlaceHolder is an element that should be placed in the master page. This defines a region that content pages can fill in. The Contentcontrol should be placed in a content page that is based on the master page. It is used for supplying the content for the ContentPlaceHolder element that it is connected to the master page.

7.
How do you link a Contentcontrol in a content page to the ContentPlaceHolder in the master page?
To link a Contentcontrol to its ContentPlaceHolderin the master page, you need to set the ContentPlaceHolderID:
<asp:Content ID="Content1" ContentPlaceHolderID="IdOfContentPlaceHolder"
Runat="Server"></asp:Content>
8.
Describe postback ?

When the page is returned to the server to evaluate code handlers, and the same page is sent back to the browser afterward.

9.
When the postback occurs ?

When an event happens on your page that causes the page to return to the server, handle the events, and then send the same page back to the browser. The contents of the page may have changed, but the page object itself is the same.

10.
Briefly explain the two types of postbacks in ASP.NET ?

The two types of postbacks are synchronous and asynchronous. Synchronous in which the entire page is sent back to the server as with a non-ajax page. Asynchronous means, in which only part of the page is updated and the rest is unaffected as with ajax page.