ASP.NET Interview questions

Total available count: 47
Subject - Microsoft Technologies
Subsubject - ASP.NET

Explain about directives in ASP.NET?

Directives specify settings that are used by the page and user-control compilers when the compilers process ASP.NET Web Forms pages (.aspx) and user control (.ascx) files.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="file.aspx.cs" Inherits="file" %>

Various directives are as follows,

1. @ Assembly: Adding an assenbly to current page or user control.
2. @ Control: Defines control-specific attributes used by the ASP.NET page parser and compiler and can be included only in .ascx files (user controls).
3. @ Implements: Declaring an Interface hierarchy inside a page.
4. @ Import: Imports a namespace in to a page or user control.
5. @ Master: A page as a master page.
6. @ MasterType: Defines the class or virtual path used to type the Master property of a page.
7. @ OutputCache: It will be used to Controls the output caching policies of a page or user control.
8. @ Page: Defines page specific in an aspx file.
9. @ PreviousPageType: It will be used in cross page postback to specify previous page.
10. @ Reference: Links a page, user control, or COM control to the current page or user control declaratively.
11. @ Register: To Register user controls and custom controls inside an aspx page.

Next 5 interview question(s)

Common properties in all validation controls?
Explain about different validation controls available in ASP.NET?
ASP.NET Event bubbling?
AutoEventWireUp property?
Explain about page life cycle?