Interview FAQs

ASP.NET includes some rich data controls that support repeated-value binding. The rich data controls are designed exclusively for data binding. They also have the ability to display several properties or fields from each data item, often in a table-based layout or according to a template youve defined; they support higher-level features such as editing; and they provide several events that allow you to plug into the controls inner workings at various points.
ASP.NET master pages allow you to create a consistent layout for the pages in your application. A single master page defines the look and feel and standard behavior that you want for all of the pages (or a group of pages) in your application. You can then create individual content pages that contain the content you want to display. When users request the content pages, they merge with the master page to produce output that combines the layout of the master page with the content from the content page.

The ContentPlaceHolder control is where the page specific content will be placed. This master page is a template that will act as the base for all subsequent pages.

A master page is an ASP.NET file with the extension .master (for example, MySite.master) with a predefined layout that can include static text, HTML elements and server controls.

The master page is identified by a special @ Master directive that replaces the @ Page directive that is used for ordinary .aspx pages. The @ Master directive can contain most of the same directives that a @ Control directive can contain. For example, the following master-page directive includes the name of a code-behind file, and assigns a class name to the master page.
When a page is requested by an Internet Explorer 5 browser, or later, smart navigation enhances the users experience of the page by performing the following:
  • Eliminating the flash caused by navigation.
  • Persisting the scroll position when moving from page to page.
  • Persisting element focus between navigations.
  • Retaining only the last page state in the browsers history.
  • Smart navigation is best used with ASP.NET pages that require frequent postbacks but with visual content that does not change dramatically on return. Consider this carefully when deciding whether to set this property to true.
Set the SmartNavigation attribute to true in the @ Page directive in the .aspx file. When the page is requested, the dynamically generated class sets this property.
The Session.Abandon() method destroys all the objects stored in a Session object and releases their resources. If you do not call the Abandon method explicitly, the server destroys these objects when the session times out.
The System.Data namespace consists mostly of the classes that constitute the ADO.NET architecture. The ADO.NET architecture enables developers to build components that efficiently manage data from multiple data sources. In a disconnected scenario, for example where a mobile application client connects to a database, extracts data, and then disconnects, ADO.NET provides the tools to request, update, and reconcile data in multiple tier systems. The same ADO.NET model can be used in client applications, such as Windows Forms, in Web applications created with ASP.NET, in Web services, in daemon applications, or even in database trigger logic.
The System.Diagnostics namespace provides classes that allow applications to interact with system processes, event logs, and performance counters.

Like the Process class provides functionality to monitor system processes across the network, and to start and stop local system processes.

The System.Diagnostics namespace also provides classes that allow you to debug your application and to trace the execution of your code through Trace and Debug classes.
The System.DirectoryServices namespace provides easy access to Active Directory from managed code. The namespace contains two component classes, DirectoryEntry and DirectorySearcher, which use the Active Directory Services Interfaces (ADSI) technology. ADSI is the set of interfaces that Microsoft provides as a flexible tool for working with a variety of network providers. ADSI gives the administrator the ability to locate and manage resources on a network with relative ease, regardless of the network size.

The classes in this namespace can be used with any of the Active Directory service providers. The current providers are: Internet Information Services (IIS), Lightweight Directory Access Protocol (LDAP), Novell NetWare Directory Service (NDS), and WinNT.
The System namespace contains fundamental classes and base classes that define commonly-used value and reference data types, events and event handlers, interfaces, attributes, and processing exceptions.

Other classes provide services supporting data type conversion, method parameter manipulation, mathematics, remote and local program invocation, application environment management, and supervision of managed and unmanaged applications.
The System.CodeDom namespace contains classes that can be used to represent the elements and structure of a source code document. The classes in this namespace can be used to model the structure of a source code document that can be output as source code in a supported language using the functionality provided by the System.CodeDom.Compiler namespace.

The strength here comes from the fact that applications can generate code at runtime, compile it in memory, and execute it. This allows applications to respond to a changing environment in real time, or to exploit the highly-optimized CLR Execution engine in application-specific ways. A great example would be a programmable logic controller in a manufacturing or process control system an application could dynamically generate MSIL corresponding to the logic as it changes.
The System.Collections namespace contains interfaces and classes that define various collections of objects, such as lists, queues, bit arrays, stacks, hashtables and dictionaries.

In the .NET Framework v2.0, the collections classes are expanded to include support for generic types, making for greater performance, and improved type safety.
PreviousDisplaying 23 of 46Next
Need Help? Contact Us.

Log in


Forgot password?


New User