Está en la página 1de 30

ASP.

NET AJAX Interview Questions – Part I


The ASP.NET AJAX Interview Questions contains the most frequently asked questions
in ASP.NET AJAX. These lists of questions will gauge your familiarity with the
ASP.NET AJAX platform.
What is Ajax?
The term Ajax was coined by Jesse James Garrett and is a short form for
"Asynchronous Javascript and XML". Ajax represents a set of commonly used
techniques, like HTML/XHTML, CSS, Document Object Model(DOM), XML/XSLT,
Javascript and the XMLHttpRequest object, to create RIA's (Rich Internet
Applications).
Ajax gives the user, the ability to dynamically and asynchronously interact with a
web server, without using a plug-in or without compromising on the user’s ability to
interact with the page. This is possible due to an object found in browsers called the
XMLHttpRequest object.
What is ASP.NET AJAX?
‘ASP.NET AJAX’ is a terminology coined by Microsoft for ‘their’ implementation of
AJAX, which is a set of extensions to ASP.NET. These components allow you to build
rich AJAX enabled web applications, which consists of both server side and client side
libraries.
Which is the current version of ASP.NET AJAX Control
Toolkit?
As of this writing, the toolkit version is Version 1.0.20229 (if you are targeting
Framework 2.0, ASP.NET AJAX 1.0 and Visual Studio 2005) and Version 3.0.20229
(if targeting .NET Framework 3.5 and Visual Studio 2008).
What role does the ScriptManager play?
The ScriptManager manages all ASP.NET AJAX resources on a page and renders the
links for the ASP.NET AJAX client libraries, which lets you use AJAX functionality like
PageMethods, UpdatePanels etc. It creates the PageRequestManager and Application
objects, which are prominent in raising events during the client life cycle of an
ASP.NET AJAX Web page. It also helps you create proxies to call web services
asynchronously.
Can we use multiple ScriptManager on a page?
No. You can use only one ScriptManager on a page.
What is the role of a ScriptManagerProxy?
A page can contain only one ScriptManager control. If you have a Master-Content
page scenario in your application and the MasterPage contains a ScriptManager
control, then you can use the ScriptManagerProxy control to add scripts to content
pages.
Also, if you come across a scenario where only a few pages in your application need
to register to a script or a web service, then its best to remove them from the
ScriptManager control and add them to individual pages, by using the
ScriptManagerProxy control. That is because if you added the scripts using the
ScriptManager on the Master Page, then these items will be downloaded on each
page that derives from the MasterPage, even if they are not needed, which would
lead to a waste of resources.
What are the requirements to run ASP.NET AJAX
applications on a server?
You would need to install ‘ASP.NET AJAX Extensions’ on your server. If you are using
the ASP.NET AJAX Control toolkit, then you would also need to add the
AjaxControlToolkit.dll in the /Bin folder.
Note: ASP.NET AJAX 1.0 was available as a separate downloadable add-on for
ASP.NET 2.0. With ASP.NET 3.5, the AJAX components have been integrated into
ASP.NET.
Explain the UpdatePanel?
The UpdatePanel enables you to add AJAX functionality to existing ASP.NET
applications. It can be used to update content in a page by using Partial-page
rendering. By using Partial-page rendering, you can refresh only a selected part of
the page instead of refreshing the whole page with a postback.
Can I use ASP.NET AJAX with any other technology apart
from ASP.NET?
To answer this question, check out this example of using ASP.NET AJAX with PHP, to
demonstrate running ASP.NET AJAX outside of ASP.NET. Client-Side ASP.NET AJAX
framework can be used with PHP and Coldfusion.
How can you cancel an Asynchronous postback?
Yes you can. Read my article over here.
Difference between Server-Side AJAX framework and
Client-side AJAX framework?
ASP.NET AJAX contains both a server-side Ajax framework and a client-side Ajax
framework. The server-side framework provides developers with an easy way to
implement Ajax functionality, without having to possess much knowledge of
JavaScript. The framework includes server controls and components and the drag
and drop functionality. This framework is usually preferred when you need to quickly
ajaxify an asp.net application. The disadvantage is that you still need a round trip to
the server to perform a client-side action.
The Client-Side Framework allows you to build web applications with rich user-
interactivity as that of a desktop application. It contains a set of JavaScript libraries,
which is independent from ASP.NET. The library is getting rich in functionality with
every new build released.
How can you debug ASP.NET AJAX applications?
Explain about two tools useful for debugging: Fiddler for IE and Firebug for Mozilla.
Can we call Server-Side code (C# or VB.NET code) from
javascript?
Yes. You can do so using PageMethods in ASP.NET AJAX or using webservices.
Can you nest UpdatePanel within each other?
Yes, you can do that. You would want to nest update panels to basically have more
control over the Page Refresh.
How can you to add JavaScript to a page when
performing an asynchronous postback?
Use the ScriptManager class. This class contains several methods like the
RegisterStartupScript(), RegisterClientScriptBlock(), RegisterClientScriptInclude(),
RegisterArrayDeclaration(),RegisterClientScriptResource(),
RegisterExpandoAttribute(), RegisterOnSubmitStatement() which helps to add
javascript while performing an asynchronous postback.
Explain differences between the page execution
lifecycle of an ASP.NET page and an ASP.NET AJAX
page?
In an asynchronous model, all the server side events occur, as they do in a
synchronous model. The Microsoft AJAX Library also raises client side events.
However when the page is rendered, asynchronous postback renders only the
contents of the update panel, where as in a synchronous postback, the entire page is
recreated and sent back to the browser.
Explain the AJAX Client life-cycle events
Here’s a good article about the same.
Is the ASP.NET AJAX Control
Toolkit(AjaxControlToolkit.dll) installed in the Global
Assembly Cache?
No. You must copy the AjaxControlToolkit.dll assembly to the /Bin folder in your
application.

What is an application server?


As defined in Wikipedia, an application server is a software engine that delivers
applications to client computers or devices. The application server runs your server
code. Some well known application servers are IIS (Microsoft), WebLogic Server
(BEA), JBoss (Red Hat), WebSphere (IBM).
Compare C# and VB.NET
A detailed comparison can be found over here.
What is a base class and derived class?
A class is a template for creating an object. The class from which other classes
derive fundamental functionality is called a base class. For e.g. If Class Y derives
from Class X, then Class X is a base class.

The class which derives functionality from a base class is called a derived class. If
Class Y derives from Class X, then Class Y is a derived class.
What is an extender class?
An extender class allows you to extend the functionality of an existing control. It is
used in Windows forms applications to add properties to controls.
A demonstration of extender classes can be found over here.
What is inheritance?
Inheritance represents the relationship between two classes where one type derives
functionality from a second type and then extends it by adding new methods,
properties, events, fields and constants.

C# support two types of inheritance:


• Implementation inheritance
• Interface inheritance
What is implementation and interface inheritance?
When a class (type) is derived from another class(type) such that it inherits all the
members of the base type it is Implementation Inheritance.
When a type (class or a struct) inherits only the signatures of the functions from
another type it is Interface Inheritance.
In general Classes can be derived from another class, hence support Implementation
inheritance. At the same time Classes can also be derived from one or more
interfaces. Hence they support Interface inheritance.
Source: Exforsys.
What is inheritance hierarchy?
The class which derives functionality from a base class is called a derived class. A
derived class can also act as a base class for another class. Thus it is possible to
create a tree-like structure that illustrates the relationship between all related
classes. This structure is known as the inheritance hierarchy.
How do you prevent a class from being inherited?
In VB.NET you use the NotInheritable modifier to prevent programmers from using
the class as a base class. In C#, use the sealed keyword.
When should you use inheritance?
Read this.
Define Overriding?
Overriding is a concept where a method in a derived class uses the same name,
return type, and arguments as a method in its base class. In other words, if the
derived class contains its own implementation of the method rather than using the
method in the base class, the process is called overriding.
Can you use multiple inheritance in .NET?
.NET supports only single inheritance. However the purpose is accomplished using
multiple interfaces.
Why don’t we have multiple inheritance in .NET?
There are several reasons for this. In simple words, the efforts are more, benefits
are less. Different languages have different implementation requirements of multiple
inheritance. So in order to implement multiple inheritance, we need to study the
implementation aspects of all the languages that are CLR compliant and then
implement a common methodology of implementing it. This is too much of efforts.
Moreover multiple interface inheritance very much covers the benefits that multiple
inheritance has.
What is an Interface?
An interface is a standard or contract that contains only the signatures of methods or
events. The implementation is done in the class that inherits from this interface.
Interfaces are primarily used to set a common standard or contract.
When should you use abstract class vs interface or
What is the difference between an abstract class and
interface?
I would suggest you to read this. There is a good comparison given over here.
What are events and delegates?
An event is a message sent by a control to notify the occurrence of an action.
However it is not known which object receives the event. For this reason, .NET
provides a special type called Delegate which acts as an intermediary between the
sender object and receiver object.
What is business logic?
It is the functionality which handles the exchange of information between database
and a user interface.
What is a component?
Component is a group of logically related classes and methods. A component is a
class that implements the IComponent interface or uses a class that implements
IComponent interface.
What is a control?
A control is a component that provides user-interface (UI) capabilities.
What are the differences between a control and a
component?
The differences can be studied over here.
What are design patterns?
Design patterns are common solutions to common design problems.
What is a connection pool?
A connection pool is a ‘collection of connections’ which are shared between the
clients requesting one. Once the connection is closed, it returns back to the pool.
This allows the connections to be reused.
What is a flat file?
A flat file is the name given to text, which can be read or written only sequentially.
What are functional and non-functional requirements?
Functional requirements defines the behavior of a system whereas non-functional
requirements specify how the system should behave; in other words they specify the
quality requirements and judge the behavior of a system.
E.g.
Functional - Display a chart which shows the maximum number of products sold in a
region.
Non-functional – The data presented in the chart must be updated every 5 minutes.
What is the global assembly cache (GAC)?
GAC is a machine-wide cache of assemblies that allows .NET applications to share
libraries. GAC solves some of the problems associated with dll’s (DLL Hell).
What is a stack? What is a heap? Give the differences
between the two?
Stack is a place in the memory where value types are stored. Heap is a place in the
memory where the reference types are stored.

Check this link for the differences.


What is instrumentation?
It is the ability to monitor an application so that information about the application’s
progress, performance and status can be captured and reported.
What is code review?
The process of examining the source code generally through a peer, to verify it
against best practices.
What is logging?
Logging is the process of persisting information about the status of an application.
What are mock-ups?
Mock-ups are a set of designs in the form of screens, diagrams, snapshots etc., that
helps verify the design and acquire feedback about the application’s requirements
and use cases, at an early stage of the design process.
What is a Form?
A form is a representation of any window displayed in your application. Form can be
used to create standard, borderless, floating, modal windows.
What is a multiple-document interface(MDI)?
A user interface container that enables a user to work with more than one document
at a time. E.g. Microsoft Excel.
What is a single-document interface (SDI) ?
A user interface that is created to manage graphical user interfaces and controls into
single windows. E.g. Microsoft Word
What is BLOB ?
A BLOB (binary large object) is a large item such as an image or an exe represented
in binary form.
What is ClickOnce?
ClickOnce is a new deployment technology that allows you to create and publish self-
updating applications that can be installed and run with minimal user interaction.
What is object role modeling (ORM) ?
It is a logical model for designing and querying database models. There are various
ORM tools in the market like CaseTalk, Microsoft Visio for Enterprise Architects,
Infagon etc.
What is a private assembly?
A private assembly is local to the installation directory of an application and is used
only by that application.
What is a shared assembly?
A shared assembly is kept in the global assembly cache (GAC) and can be used by
one or more applications on a machine.
What is the difference between user and custom
controls?
User controls are easier to create whereas custom controls require extra effort.
User controls are used when the layout is static whereas custom controls are used in
dynamic layouts.
A user control cannot be added to the toolbox whereas a custom control can be.
A separate copy of a user control is required in every application that uses it whereas
since custom controls are stored in the GAC, only a single copy can be used by all
applications.
Where do custom controls reside?
In the global assembly cache (GAC).
What is a third-party control ?
A third-party control is one that is not created by the owners of a project. They are
usually used to save time and resources and reuse the functionality developed by
others (third-party).
What is a binary formatter?
Binary formatter is used to serialize and deserialize an object in binary format.
What is Boxing/Unboxing?
Boxing is used to convert value types to object.
E.g. int x = 1;
object obj = x ;
Unboxing is used to convert the object back to the value type.
E.g. int y = (int)obj;
Boxing/unboxing is quiet an expensive operation.
What is a COM Callable Wrapper (CCW)?
CCW is a wrapper created by the common language runtime(CLR) that enables COM
components to access .NET objects.
What is a Runtime Callable Wrapper (RCW)?
RCW is a wrapper created by the common language runtime(CLR) to enable .NET
components to call COM components.
What is a digital signature?
A digital signature is an electronic signature used to verify/gurantee the identity of
the individual who is sending the message.
What is garbage collection?
Garbage collection is the process of managing the allocation and release of memory
in your applications. Read this article for more information.
What is globalization?
Globalization is the process of customizing applications that support multiple cultures
and regions.
What is localization?
Localization is the process of customizing applications that support a given culture
and regions.
What is MIME?
The definition of MIME or Multipurpose Internet Mail Extensions as stated in MSDN is
“MIME is a standard that can be used to include content of various types in a single
message. MIME extends the Simple Mail Transfer Protocol (SMTP) format of mail
messages to include multiple content, both textual and non-textual. Parts of the
message may be images, audio, or text in different character sets. The MIME
standard derives from RFCs such as 2821 and 2822”.

.NET Framework Interview Questions


The Q&A mentioned over here have been taken from forums, my colleagues and my
own experience of conducting interviews. I have tried to mention the contributor
wherever possible. If you would like to contribute, kindly use the Contact form. If
you think that a credit for a contribution is missing somewhere, kindly use the same
contact form and I will do the needful.
Check out the other Interview Questions over here:
General .NET Interview Questions
ASP.NET 2.0 Interview Questions - Beginner Level (Part 1)
ASP.NET 2.0 Interview Questions - Intermediate Level
What is the Microsoft.NET?
.NET is a set of technologies designed to transform the internet into a full scale
distributed platform. It provides new ways of connecting systems, information and
devices through a collection of web services. It also provides a language
independent, consistent programming model across all tiers of an application.
The goal of the .NET platform is to simplify web development by providing all of the
tools and technologies that one needs to build distributed web applications.
What is the .NET Framework?
The .NET Framework is set of technologies that form an integral part of the .NET
Platform. It is Microsoft's managed code programming model for building applications
that have visually stunning user experiences, seamless and secure communication,
and the ability to model a range of business processes.
The .NET Framework has two main components: the common language runtime
(CLR) and .NET Framework class library. The CLR is the foundation of the .NET
framework and provides a common set of services for projects that act as building
blocks to build up applications across all tiers. It simplifies development and provides
a robust and simplified environment which provides common services to build
application. The .NET framework class library is a collection of reusable types and
exposes features of the runtime. It contains of a set of classes that is used to access
common functionality.
What is CLR?
The .NET Framework provides a runtime environment called the Common Language
Runtime or CLR. The CLR can be compared to the Java Virtual Machine or JVM in
Java. CLR handles the execution of code and provides useful services for the
implementation of the program. In addition to executing code, CLR provides services
such as memory management, thread management, security management, code
verification, compilation, and other system services. It enforces rules that in turn
provide a robust and secure execution environment for .NET applications.
What is CTS?
Common Type System (CTS) describes the datatypes that can be used by managed
code. CTS defines how these types are declared, used and managed in the runtime.
It facilitates cross-language integration, type safety, and high performance code
execution. The rules defined in CTS can be used to define your own classes and
values.
What is CLS?
Common Language Specification (CLS) defines the rules and standards to which
languages must adhere to in order to be compatible with other .NET languages. This
enables C# developers to inherit from classes defined in VB.NET or other .NET
compatible languages.
What is managed code?
The .NET Framework provides a run-time environment called the Common Language
Runtime, which manages the execution of code and provides services that make the
development process easier. Compilers and tools expose the runtime's functionality
and enable you to write code that benefits from this managed execution
environment. The code that runs within the common language runtime is called
managed code.
What is MSIL?
When the code is compiled, the compiler translates your code into Microsoft
intermediate language (MSIL). The common language runtime includes a JIT
compiler for converting this MSIL then to native code.
MSIL contains metadata that is the key to cross language interoperability. Since this
metadata is standardized across all .NET languages, a program written in one
language can understand the metadata and execute code, written in a different
language. MSIL includes instructions for loading, storing, initializing, and calling
methods on objects, as well as instructions for arithmetic and logical operations,
control flow, direct memory access, exception handling, and other operations.
What is JIT?
JIT is a compiler that converts MSIL to native code. The native code consists of
hardware specific instructions that can be executed by the CPU.
Rather than converting the entire MSIL (in a portable executable[PE]file) to native
code, the JIT converts the MSIL as it is needed during execution. This converted
native code is stored so that it is accessible for subsequent calls.
What is portable executable (PE)?
PE is the file format defining the structure that all executable files (EXE) and
Dynamic Link Libraries (DLL) must use to allow them to be loaded and executed by
Windows. PE is derived from the Microsoft Common Object File Format (COFF). The
EXE and DLL files created using the .NET Framework obey the PE/COFF formats and
also add additional header and data sections to the files that are only used by the
CLR.
What is an application domain?
Application domain is the boundary within which an application runs. A process can
contain multiple application domains. Application domains provide an isolated
environment to applications that is similar to the isolation provided by processes. An
application running inside one application domain cannot directly access the code
running inside another application domain. To access the code running in another
application domain, an application needs to use a proxy.
How does an AppDomain get created?
AppDomains are usually created by hosts. Examples of hosts are the Windows Shell,
ASP.NET and IE. When you run a .NET application from the command-line, the host
is the Shell. The Shell creates a new AppDomain for every application. AppDomains
can also be explicitly created by .NET applications.
What is an assembly?
An assembly is a collection of one or more .exe or dll’s. An assembly is the
fundamental unit for application development and deployment in the .NET
Framework. An assembly contains a collection of types and resources that are built
to work together and form a logical unit of functionality. An assembly provides the
CLR with the information it needs to be aware of type implementations.
What are the contents of assembly?
A static assembly can consist of four elements:
• Assembly manifest - Contains the assembly metadata. An assembly manifest
contains the information about the identity and version of the assembly. It also
contains the information required to resolve references to types and resources.
• Type metadata - Binary information that describes a program.
• Microsoft intermediate language (MSIL) code.
• A set of resources.
What are the different types of assembly?
Assemblies can also be private or shared. A private assembly is installed in the
installation directory of an application and is accessible to that application only. On
the other hand, a shared assembly is shared by multiple applications. A shared
assembly has a strong name and is installed in the GAC.
We also have satellite assemblies that are often used to deploy language-specific
resources for an application.
What is a dynamic assembly?
A dynamic assembly is created dynamically at run time when an application requires
the types within these assemblies.
What is a strong name?
You need to assign a strong name to an assembly to place it in the GAC and make it
globally accessible. A strong name consists of a name that consists of an assembly's
identity (text name, version number, and culture information), a public key and a
digital signature generated over the assembly. The .NET Framework provides a tool
called the Strong Name Tool (Sn.exe), which allows verification and key pair and
signature generation.
What is GAC? What are the steps to create an assembly and add it to the
GAC?
The global assembly cache (GAC) is a machine-wide code cache that stores
assemblies specifically designated to be shared by several applications on the
computer. You should share assemblies by installing them into the global assembly
cache only when you need to.
Steps
- Create a strong name using sn.exe tool eg: sn -k mykey.snk
- in AssemblyInfo.cs, add the strong name eg: [assembly:
AssemblyKeyFile("mykey.snk")]
- recompile project, and then install it to GAC in two ways :
• drag & drop it to assembly folder (C:\WINDOWS\assembly OR C:\WINNT\assembly)
(shfusion.dll tool)
• gacutil -i abc.dll
What is the caspol.exe tool used for?
The caspol tool grants and modifies permissions to code groups at the user policy,
machine policy, and enterprise policy levels.
What is a garbage collector?
A garbage collector performs periodic checks on the managed heap to identify
objects that are no longer required by the program and removes them from memory.
What are generations and how are they used by the garbage collector?
Generations are the division of objects on the managed heap used by the garbage
collector. This mechanism allows the garbage collector to perform highly optimized
garbage collection. The unreachable objects are placed in generation 0, the
reachable objects are placed in generation 1, and the objects that survive the
collection process are promoted to higher generations.
What is Ilasm.exe used for?
Ilasm.exe is a tool that generates PE files from MSIL code. You can run the resulting
executable to determine whether the MSIL code performs as expected.
What is Ildasm.exe used for?
Ildasm.exe is a tool that takes a PE file containing the MSIL code as a parameter and
creates a text file that contains managed code.
What is the ResGen.exe tool used for?
ResGen.exe is a tool that is used to convert resource files in the form of .txt or .resx
files to common language runtime binary .resources files that can be compiled into
satellite assemblies.

ASP.NET 2.0 Interview Questions –


(Intermediate)
The Q&A mentioned over here have been taken from forums, my colleagues and my
own experience of conducting interviews. I have tried to mention the contributor
wherever possible. If you would like to contribute, kindly use the Contact form. If
you think that a credit for a contribution is missing somewhere, kindly use the same
contact form and I will do the needful.
Check out the other Interview Questions over here:
General .NET Interview Questions
.NET Framework Interview Questions
ASP.NET 2.0 Interview Questions - Beginner Level (Part 1)

What is XHTML? Are ASP.NET Pages compliant with XHTML?


In simple words, XHTML is a stricter and cleaner version of HTML. XHTML stands for
EXtensible Hypertext Markup Language and is a W3C Recommendation.
Yes, ASP.NET 2.0 Pages are XHTML compliant. However the freedom has been given
to the user to include the appropriate document type declaration.
More info can be found at http://msdn2.microsoft.com/en-us/library/exc57y7e.aspx
Can I deploy the application without deploying the source code on the
server?
Yes. You can obfuscate your code by using a new precompilation process called
‘precompilation for deployment’. You can use the aspnet_compiler.exe to precompile
a site. This process builds each page in your web application into a single application
DLL and some placeholder files. These files can then be deployed to the server.
You can also accomplish the same task using Visual Studio 2005 by using the Build-
>Publish menu.
Does ViewState affect performance? What is the ideal size of a ViewState?
How can you compress a viewstate?
Viewstate stores the state of controls in HTML hidden fields. At times, this
information can grow in size. This does affect the overall responsiveness of the page,
thereby affecting performance. The ideal size of a viewstate should be not more than
25-30% of the page size.
Viewstate can be compressed to almost 50% of its size. .NET also provides the
GZipStream or DeflateStream to compress viewstate. Another option is explained
by Scott Hanselmann over here.
How can you detect if a viewstate has been tampered?
By setting the EnableViewStateMac to true in the @Page directive. This attribute
checks the encoded and encrypted viewstate for tampering.
Can I use different programming languages in the same application?
Yes. Each page can be written with a different programming language in the same
application. You can create a few pages in C# and a few in VB.NET.
Can the App_Code folder contain source code files in different programming
languages?
No. All source code files kept in the root App_Code folder must be in the same
programming language.
Update: However, you can create two subfolders inside the App_Code and then add
both C# and VB.NET in the respective subfolders. You also have to add configuration
settings in the web.config for this to work.
How do you secure your connection string information?
By using the Protected Configuration feature.
How do you secure your configuration files to be accessed remotely by
unauthorized users?
ASP.NET configures IIS to deny access to any user that requests access to the
Machine.config or Web.config files.
How can I configure ASP.NET applications that are running on a remote
machine?
You can use the Web Site Administration Tool to configure remote websites.
How many web.config files can I have in an application?
You can keep multiple web.config files in an application. You can place a Web.config
file inside a folder or wherever you need (apart from some exceptions) to override
the configuration settings that are inherited from a configuration file located at a
higher level in the hierarchy.
I have created a configuration setting in my web.config and have kept it at
the root level. How do I prevent it from being overridden by another
web.config that appears lower in the hierarchy?
By setting the element's Override attribute to false.
What is the difference between Response.Write and
Response.Output.Write?
As quoted by Scott Hanselman, the short answer is that the latter gives you
String.Format-style output and the former doesn't.
To get a detailed explanation, follow this link.
What is Cross Page Posting? How is it done?
By default, ASP.NET submits a form to the same page. In cross-page posting, the
form is submitted to a different page. This is done by setting the ‘PostBackUrl’
property of the button(that causes postback) to the desired page. In the code-behind
of the page to which the form has been posted, use the ‘FindControl’ method of the
‘PreviousPage’ property to reference the data of the control in the first page.
Can you change a Master Page dynamically at runtime? How?
Yes. To change a master page, set the MasterPageFile property to point to the
.master page during the PreInit page event.
How do you apply Themes to an entire application?
By specifying the theme in the web.config file.
Eg: <configuration>
<system.web>
<pages theme=”BlueMoon” />
</system.web>
</configuration>

How do you exclude an ASP.NET page from using Themes?


To remove themes from your page, use the EnableTheming attribute of the Page
directive.
Your client complains that he has a large form that collects user input. He
wants to break the form into sections, keeping the information in the forms
related. Which control will you use?
The ASP.NET Wizard Control.
To learn more about this control, visit this link.
Do webservices support data reader?
No. However it does support a dataset.
What is use of the AutoEventWireup attribute in the Page directive ?
The AutoEventWireUp is a boolean attribute that allows automatic wireup of page
events when this attribute is set to true on the page. It is set to True by default for a
C# web form whereas it is set as False for VB.NET forms. Pages developed with
Visual Studio .NET have this attribute set to false, and page events are individually
tied to handlers.
What happens when you change the web.config file at
run time?
ASP.NET invalidates the existing cache and assembles a new cache. Then ASP.NET
automatically restarts the application to apply the changes.
Can you programmatically access IIS configuration
settings?
Yes. You can use ADSI, WMI, or COM interfaces to configure IIS programmatically.
How does Application Pools work in IIS 6.0?
As explained under the IIS documentation, when you run IIS 6.0 in worker process
isolation mode, you can separate different Web applications and Web sites into
groups known as application pools. An application pool is a group of one or more
URLs that are served by a worker process or set of worker processes. Any Web
directory or virtual directory can be assigned to an application pool.

Every application within an application pool shares the same worker process.
Because each worker process operates as a separate instance of the worker process
executable, W3wp.exe, the worker process that services one application pool is
separated from the worker process that services another. Each separate worker
process provides a process boundary so that when an application is assigned to one
application pool, problems in other application pools do not affect the application.
This ensures that if a worker process fails, it does not affect the applications running
in other application pools.

Use multiple application pools when you want to help ensure that applications and
Web sites are confidential and secure. For example, an enterprise organization might
place its human resources Web site and its finance Web site on the same server, but
in different application pools. Likewise, an ISP that hosts Web sites and applications
for competing companies might run each companys Web services on the same
server, but in different application pools. Using different application pools to isolate
applications helps prevent one customer from accessing, changing, or using
confidential information from another customers site.
In HTTP.sys, an application pool is represented by a request queue, from which the
user-mode worker processes that service an application pool collect the requests.
Each pool can manage requests for one or more unique Web applications, which you
assign to the application pool based on their URLs. Application pools, then, are
essentially worker process configurations that service groups of namespaces.
Multiple application pools can operate at the same time. An application, as defined by
its URL, can only be served by one application pool at any time. While one
application pool is servicing a request, you cannot route the request to another
application pool. However, you can assign applications to another application pool
while the server is running.

ASP.NET interview questions and their answers part 1

Next>>
Part 1 | Part 2 | Part 3 | Part 4 | part 5

 Define assembly.
 Define .NET executable.
 Explain .net architecture.
 Name the ASP.NET objects.
 Briefly describe the life cycle of ASP.NET web form.
 Define .NET Framework base class library.
 Define Variable Types.
 Define User-defined types.
 Define methods.
 Define abstract class.
 Explain the difference between Response.Write() and Response.Output.Write().
 Define a Process, Session and Cookie.
 When is ViewState available during the page processing cycle?
 Explain serialization in ASP.NET?
 What is a Constructor?
 What is a Destructor?
 Explain how a web application works.
 Explain the different parts that constitute ASP.NET application.
 Describe the sequence of action takes place on the server when ASP.NET application starts first
time.
 Explain the components of web form in ASP.NET.
 Describe in brief the .NET Framework and its components.
 What is an Assembly? Explain its parts.
 Define Common Type System.
 Define Virtual folder.
 What are the ways of preserving data on a Web Form in ASP.NET?
 Define application state variable and session state variable.
 ASP.NET session vs Classic ASP
 What is event bubbling?
 Explain the difference between "Web Farms" and "Web Garden".
 Explain the purpose of ErrorProvider component.
 What is a ViewState?
 What is the difference between src and Code-Behind?

ASP.NET interview questions posted on April, 14th 2009

What are the parts of the .NET Framework?

.NET Framework has two main parts:

The common language runtime (CLR)


The .NET Framework class library

What are the ways to persistent data in a web application?


Data can be persisted in the web application using any of the following mechanism.

ApplicationState
SessionState
ViewState.

How does classes are organized in the .NET Framework?

The .NET Framework has organized its classes using namespaces.

What is the point to remember about Transfer method in ASP.NET?

Transfer method can't be used with HTML pages. It works only with .aspx pages.

What are the different exception-handling approaches in ASP.NET Web applications?

Exceptions can be handled using any of the following approaches:

Try, Catch, and Finally keywords in VB.NET or the try, catch, and finally keywords in C#.
Error event procedures at the Global, Application, or Page levels.

Describe the purpose of error pages and why they are needed.

Error page is used to trap exceptions occur outside the scope of the application.
The exceptions of these types are identified by HTTP response codes.
These exceptions are handled by IIS by displaying custom error pages listed in your application’s Web.config
file.

ASP.NET interview questions posted on April, 13th 2009

Explain how tracing helps in handling exceptions.

Tracing helps developer by recording an unusual event while application is running. The developer can trace
the unexpected events in the trace log, thus can fix the problem.

Difference between Windows and Forms authentication user lists in Web.config

User lists for Windows authentication are included in the element of Web.config.
User lists for Forms authentications are included in the element of Web.config.

Explain how to require authentication using the Web.config file in ASP.NET.

We can include <authorization> element to require authentication as shown below:

<authorization>
<deny users="?" />
</authorization>
What is the difference between the Debug and Trace classes?

Code using the Debug class is stripped out of release builds.


Code using the Trace class is left in.

Write a directive to cache responses for a Web form for 30 seconds.

<%@ OutputCache Duration=”30” VaryByParam=”me” %>

Explain how to detect when application data is about to be removed from the cache.

We can detect using onRemoveCallback delegate.

CurrentCulture property vs. CurrentUICulture property.

The CurrentCulture property states how the .NET Framework handles dates, currencies, sorting, and
formatting issues.
The CurrentUICulture property determines which satellite assembly is used when loading resources.

ASP.NET interview questions posted on April, 12th 2009

What is the purpose of MVC patter?

MVC pattern separates the GUI from the data. It helps in providing multiple views for the same data.

Explain how to enable and disable connnection pooling.

Set pooling = true in the connectionstring. By default, it is true.


Set pooling = false to disable connection pooling.

Dataset.clone vs. Dataset.copy

Dataset.clone copies the structure only whereas dataset copy copies both structure and data.

Explain how to configure WebGarden in ASP.NET.

WebGarden can be configured using process model setting in "machine.config" or "web.config".

What is Webfarm?

Webform consist of two or more web server of same configuration. When any request is made, the router
logic of webform decides which web server from the farm handles the request.

Explain the advantages of having webfarm.

Webfarm allows the application to run even if a server is down, since request can be served by other web
server of the farm.

ASP.NET interview questions posted on April, 11th 2009

What is windows service?

Windows service has the capability to start automatically when the computer boots. It can be manually
paused, stopped or even restarted.

Explain how to remove anonymous access to the IIS web application.

<configuration>
<system.web>
<authorization>
<deny user = "?">
</authorization>
</system.web>
</configuration>

Server-side vs. client-side code

Client-side code is executed on the browser whereas server side code is executed on the server under IIS.

Name the threading model used for ASP.NET.

MTA threading model.

Command to kill user session.

Session.abandon

ASP.NET interview questions posted on April, 10th 2009

How to enable tracing in ASP.NET

Tracing can be enabaled as shown below:


<%@Page Trace = "True"%>

Name the major events in Global.aspx file.

-Application_Init
-Application_Disposed
-Application_Error
-Application_Start
-Application_End
-Application_BeginRequest
-Application_EndRequest
-Application_PreRequestHandlerExecute
-Application_PostRequestHandlerExecute
-Application_PreSendRequestHeaders
-Application_PreSendContent
-Application_AcquireRequestState
-Application_ReleaseRequestState
-Application_ResolveRequestCache
-Application_UpdateRequestCache
-Application_AuthenticateRequest
-Application_AuthorizeRequest
-Session_Start
-Session_End

What are authentication techniques in ASP.NET?

-Windows authentication
-Passport authentication
-Forms authentication

Authentication vs. authorization

-Authentication is varying the identity of the user.


-Authorization is the process of allowing an authenticated user access to resources.

ASP.NET interview questions posted on April, 9th 2009

Explain the uses of Global.asax file.

-using this we can set application-level variables


-we can use application-level events.

What is the validation control provided in ASP.NET?

-RequiredFieldValidator
-RangeValidator
-CompareValidator
-RegularExpressionValidation
-CustomValidator
-ValidationSummary

List the sequenced in which ASP.NET events are processed.

-Page_Init
-Page_Load
-Control_Events
-Page_Unload events
ASP.NET interview questions posted by By Sanjit Sil

How can we create custom controls in ASP.NET?

Custom controls are those controls which we make for some customization purpose by using one or more
available .net controls or inheriting a particular control and adding/overriding properties or methods to it.

For example, we can create a formatted input control using our TextBox input control.

Basically there are three ways to create custom controls:

1. Adding two or more available .net controls and makes a composite control.

2. Inherit any existing control and add or override any properties or methods.

3. Create a new control by deriving the base control classes

What is AppSetting Section in “Web.Config” file?

It is usefull to set some application settings to use at runtime. For example Database information in form of
connectionstring.

<P><appSettings><BR><addkey="ConInfo"value="server=(local);database=Test; Integrated
Security=SSPI" />
</appSettings>

To retrieve the value in codebehind we can do as follows:


string strConnection=ConfigurationManager.AppSettings["ConInfo"].ToString();

Explain the various authentication mechanisms in ASP.NET.

ASP.NET provides three ways to authenticate a user:

Forms authentication: We can specify user credential in web.config for particular form:

<configuration>
<system.web>
<authentication mode="Forms">
<forms loginUrl="login.aspx">
<credentials passwordFormat="Clear|SHA1|MD5"">
<user name="Sanjit" password="sil" />
</credentials>
</forms>
</authentication>
<authorization>
</system.web>
</configuration>

Windows authentication :
This is the default authentication mode in ASP.NET. Using this mode, a user is authenticated based on
his/her Windows account.

Passport authentication :
Passport authentication that uses Microsoft's Passport Service to authenticate the users of an application.

How many types of validation controls are provided by ASP.NET? Explain them.

There are 6 validation controls in ASP.NET:

1. RequiredFieldValidator: It is for mandatory field.


2. RegularExpressionValidator: It checks the match with a given regularexpression.
3. CompareValidator: It checks that the value in the validated control matches with the value of another
control or with a specific value.
4. RangeValidator: It checks the validated control value with a specified range.
5.. CustomValidator: Require to do custom validation on any control after writing required code.
6. ValidationSummary:This control is used to display a summary of all validation errors raised in a particular
Web page.

What is impersonation in ASP.NET?

Impersonation is used to decide whether a user request in an ASp.NET application can run under the
authenticated identity received from IIS or under a specific identity specified in web.config file when
impersonation is enabled.When it is disabled the user request will run under the ASPNET account( the
process identity of the application worker process) .By default it is disabled.

<identity impersonate="true" userName="domain\user" password="password" />


or
<identity impersonate="true"/>
or
<identity impersonate="false"/>

ASP.NET interview questions posted by By Satya Narayana

How can we create custom controls in ASP.NET?

To create custom controls in asp.net, initially we have to create Class Library (i.e. for web Applications we
need Web Control Library), Web Control Library can be available from Templates while we select windows
from Project Types.

Then you may add any server controls like Textbox, Label, and Button etc… and you may add your
functionality as your requirement. Then you build the solution, after build successfully you will get
corresponding dll file in debug folder.

Then create Web Application , Right click on Toolbox at any tab select Choose Items…, then you will get
Choose Toolbox Items window , in that window select .Net Framework Components Tab, then click on
Browse.. button and navigate to the dll file previously where you have created, then select the dll file and click
open button then click ok button, then you will get the custom control in Toolbox at corresponding tab, then
you may use that control as general server control.
What is AppSetting Section in “Web.Config” file?

appSettings section in Web.Config file is used for place the connection string as follows..

<appSettings>

<addkey="MyConn" value="server=YOURSERVERNAME;database=YOURDATABASENAME;integrated
security=SSPI"/>

</appSettings>

Explain the various authentication mechanisms in ASP.NET.

In ASP.Net various types of authentications are available as follows.

Windows Authentication
Forms Authentication
Passport Authentication

Windows Authentication : is Trusted Authentication almost while compare to other ASP.NET authentication
mechanisms , because it relies on IIS(Internet Information services). One of the major advantage of windows
authentication is to allow implementation of an impersonation scheme.Windows Authentication does not send
the User Credentials over the network , thatswhy it should be used anywhere possible.

Forms Authentication: is the most well-liked method of authentication. When user attempts to access the
page with his credentials and if they are false, then user should navigate to login page, otherwise he should
navigate to the site like Default.aspx. Forms authentication uses an authentication ticket that is transmitted
between Web server and browser either in a cookie or in a URL query string. The authentication ticket is
generated when the user first logs on and it is subsequently used to represent the authenticated user. It
contains a user identifier and often a set of roles to which the user belongs. The browser passes the
authentication ticket on all subsequent requests that are part of the same session to the Web server. Along
with the user identity store, you must protect this ticket to prevent compromise of your authentication
mechanism.

Passport Authentication : is works same as Forms Authentication using cookies.To implement the passport
authentication you must download the Microsoft .Net passport SDK from the microsoft site with the
registration of your application in .NET service manager , which is costly than other authentications.

How many types of validation controls are provided by ASP.NET? Explain them

There are six validation controls provided by ASP.NET are.

Validation summary : Control is actually do not validate any control it will display the error messages from
all validation controls. If the ErrorMessage property of the validation control is not set, no error message is
displayed for that validation control.

Custom validator: It allows you to write a method to handle the validation of the value entered. It has two
attributes like ClientValidationFunction and OnServerValidate. ClientValidationFunction is Specifies the name
of the client-side validation script function to be executed. OnServerValidate is Specifies the name of the
server-side validation script function to be executed

Compare validator:It is used to compare the value of one input control to the value of another input control
or to a fixed value. One condition while using Compare Validator is if input control is empty, the validation will
succeed. Therefore Use the RequiredFieldValidator control to make the field required.

RequiredField validator : It is used to make an input control is must required field while submitting form. The
InitialValue property does not set the default value for the input control. It indicates the value that you do not
want the user to enter in the input control. for instance InitialValue=”select”.

Range validator: It is used to check that the user enters an input value that falls between two values. It is
possible to check ranges within numbers, dates, and characters. The validation will not fail if the input control
is empty. Use the RequiredFieldValidator control to make the field required.

Regular expression Validator: It is used to ensure that an input value matches a specified pattern. The
validation will not fail if the input control is empty. Use the RequiredFieldValidator control to make the field
required.

What is impersonation in ASP.NET?

Impersonation is nothing but users access a resource as though they were someone else. With
impersonation, ASP.NET can execute the request using the identity of the client who is making the request,
or ASP.NET can impersonate a specific account you specify in web.config.
If impersonation is enabled in an ASP.NET application then the request is made with the user credentials. If
impersonation is disabled in an ASP.NET application then the request is made with system level process.

ASP.NET interview questions posted by By Nishant Kumar

Question - Define assembly.

Answer - An assembly is the primary unit of a .NET application. It includes an assembly manifest that
describes the assembly.

Question - Define .NET executable.

Answer - It exists as an IL file(Assembly), it is checked against the security policy on load, gets loaded
into memory and then JIT compiled into native binary code.

Question - Explain .net architecture.

Answer - The ordering starts from the bottom.


Physical Hardware Machine (Intel Pentium, apple macintosh)
Operating System (Microsoft Windows, Linux etc)
Common Language Runtime (CLR)
Framework Class Library (FCL)
ADO.Net and XML Library
WinForm, Web Application, Web Serivces (Managed Application)

Question - Name the ASP.NET objects.

Answer - Request,Response,Server,Session, andApplication.


Question - Briefly describe the life cycle of ASP.NET web form.

Answer - Page_Init, Page_Load,Page_PreRender, Page_Unload, Page_disposed, andPage_Error.

Question - Define .NET Framework base class library.

Answer - It organizes code into namespaces and contain types and additional namespaces related to
common functionality.

Question - Define Variable Types.

Answer - Variable types can be of two types namely value types or reference types.
Value type contains all the data associated with that type.
Value types remain empty on declaration until they are assigned a value.
Reference type contains a pointer to an instance of an object of that type.
Reference type must be instantiated after declaration to create the object.
You can declare and instantiate reference type in single step.

Question - Define User-defined types.

Answer - It can be in the form of classes and structures.


Both class and structure can have members(fields, properties, methods, or events).
Classes are reference types, and structures are value types.
Both type must use the New (new ) keyword for instantiation.

Question - Define methods.

Answer - It is used to perform the data manipulation.


It can return a value.
Methods that return values are called Functions in VB.net.
Non-value-returning methods are called Sub.
Methods can have parameters.
Parameters are passed by value by default.
Pass parameters by reference with the ByRef keyword

Question - Define abstract class.

Answer - Abstract class cannot be instantiated, it has to be inherited.


The methods in abstract class can be overriden in the child class.

Question - Difference between Response.Write() and Response.Output.Write().

Answer - Response.Output.Write() allows you to write formatted output.

Question - Define a Process, Session and Cookie.

Answer - Process - Instance of the application.


Session - Instance of the user accessing the application.
Cookie - Used for storing small amount of data on client machine.

Question - When is ViewState available during the page processing cycle?

Answer - ViewState is available after the Init() and before the Page_Load().

Question - Explain serialization in ASP.NET?

Answer - Serialization is a process of converting an object into a stream of bytes. .Net has 2 serializers
namely XMLSerializer and SOAP/BINARY Serializer. Serialization is maily used in the concept of .Net
Remoting.

Question - What is a Constructor?

Answer - It is the first method that are called on instantiation of a type.


It provides way to set default values for data before the object is available for use.
Performs other necessary functions before the object is available for use.

Question - What is a Destructor?

Answer - It is called just before an object is destroyed.


It can be used to run clean-up code.
You cannot control when a destructor is called since object clean up by common language runtime.

Question - Explain how a web application works.

Answer - A web application resides in the server and serves the client™s requests over internet. The client
access the web page using browser from his machine. When a client makes a request, it receives the result
in the form of HTML which are interpreted and displayed by the browser.

A web application on the server side runs under the management of Microsoft Internet Information Services
(IIS). IIS passes the request received from client to the application. The application returns the requested
result in the form of HTML to IIS, which in turn, sends the result to the client.

Question - Explain the different parts that constitute ASP.NET application.

Answer - Content, program logic and configuration file constitute an ASP.NET application.

Content files
Content files include static text, images and can include elements from database.

Program logic
Program logic files exist as DLL file on the server that responds to the user actions.

Configuration file
Configuration file offers various settings that determine how the application runs on the server.

Question - Describe the sequence of action takes place on the server when ASP.NET application
starts first time?

Answer - Following are the sequences:


IIS starts ASP.NET worker process>> worker process loads assembly in the memory>>IIS sends the request
to the assembly>>the assembly composes a response using program logic>> IIS returns the response to the
user in the form of HTML.

Question - Explain the components of web form in ASP.NET.

Answer - Server controls


The server controls are Hypertext Markup Language (HTML) elements that include a runat=server attribute.
They provide automatic state management and server-side events and respond to the user events by
executing event handler on the server.

HTML controls.
These controls also respond to the user events but the events processing happen on the client machine.

Data controls
Data controls allow to connect to the database, execute command and retrieve data from database.

System components
System components provide access to system-level events that occur on the server.

Question - Describe in brief the .NET Framework and its components.

Answer - .NET Framework provides platform for developing windows and web software. ASP.NET is a part
of .Net framework and can access all features implemented within it that was formerly available only through
windows API. .NET Framework sits in between our application programs and operating system.

The .Net Framework has two main components:


.Net Framework Class Library: It provides common types such as data types and object types that can be
shared by all .Net compliant language.

The Common language Runtime: It provides services like type safety, security, code execution, thread
management, interoperability services.

Question - What is an Assembly? Explain its parts?

Answer - An assembly exists as a .DLL or .EXE that contains MSIL code that is executed by CLR. An
assembly contains interface and classes, it can also contain other resources like bitmaps, files etc. It carries
version details which are used by the CLR during execution. Two assemblies of the same name but with
different versions can run side-by-side enabling applications that depend on a specific version to use
assembly of that version. An assembly is the unit on which permissions are granted. It can be private or
global. A private assembly is used only by the application to which it belongs, but the global assembly can be
used by any application in the system.

The parts of an assembly are:

Assembly Manifest - It contains name, version, culture, and information about referenced assemblies.

Type metadata - It contains information about types defined in the assembly. MSIL - MSIL code.

Resources - Files such as BMP or JPG file or any other files required by application.
Question - Define Common Type System.

Answer - .Net allows developers to write program logic in at least 25 languages. The classes written in one
language can be used by other languages in .Net. This service of .Net is possible through CTS which ensure
the rules related to data types that all language must follow. It provides set of types that are used by all .NET
languages and ensures .NET language type compatibility.

Question - Define Virtual folder.

Answer - It is the folder that contains web applications. The folder that has been published as virtual folder by
IIS can only contain web applications.

Question - What are the ways of preserving data on a Web Form in ASP.NET?

ASP.NET has introduced view state to preserve data between postback events. View state can't avail data to
other web form in an application. To provide data to other forms, you need to save data in a state variable in
the application or session objects.

Question - Define application state variable and session state variable.

These objects provide two levels of scope:

Application State
Data stored in the application object can be shared by all the sessions of the application. Application object
stores data in the key value pair.

Session State
Session State stores session-specific information and the information is visible within the session only.
ASP.NET creates unique sessionId for each session of the application. SessionIDs are maintained either by
an HTTP cookie or a modified URL, as set in the application's configuration settings. By default, SessionID
values are stored in a cookie.

ASP.NET Interview questions with answers posted on July 22, 2008 at 8:10 am

Question - ASP.NET session vs Classic ASP

Answer
ASP session variables are recycled when IIS restarts. ASP.NET session is maintained even if IIS reboots.
With ASP session, we can’t have web farms. ASP.NET session supports multiple servers since it can be
stored in state server and SQL server.
ASP session is compatible to only those browsers that support cookies.

Question - What is event bubbling?

Answer
In ASP.NET, we can have child controls inside server control like Datagrid, Datalist, Repeater. Example,
combo box can be placed inside Datagrid. The child can’t raise their events by himself; they send events to
their parent which pass to the page as “Itemcommand” event. This processing is called event bubbling.
October 30, 2008 at 18:10 pm by Amit Satpute

Explain the difference between "Web Farms" and "Web Garden".

Web Garden is the web hosting system which comprises of multiple “processes”.

Web Farm is the web hosting system which comprises of multiple “computers”.

Explain the purpose of ErrorProvider component.

The ErrorProvider control is used to for validations in the Forms and display user-friendly error messages to
the user when the validation fails.

Part 1 | Part 2 | Part 3 | Part 4 | part 5

Next>>

Also Read

What is impersonation in ASP.NET?

ASP.NET can also impersonate a specific account you specify in web.config.........

What is event bubbling in .NET?

The passing of the control from the child to the parent is called as bubbling..........

Describe how the ASP.NET authentication process works.

ASP.NET runs inside the process of IIS due to which there are two authentication layers which exist in the
system.............

Explain the ways of authentication techniques in ASP.NET

Custom authentication needs installation of ISAPI filter in IIS.........

Windows authentication.

If windows authentication mode is selected for an ASP.NET application, then authentication also needs to be
configured within IIS since it is provided by IIS............

.NET crystal reports

How do we access crystal reports in .NET?


What are the various components in crystal reports?
What basic steps are needed to display a simple report in crystal?..........

ASP.NET DataList Control

Using the DataList control, Binding images to a DataList control dynamically, Displaying data using the
DataList control, Selecting, editing and delete data using this control, Handling the DataList control
events..........

ASP.NET Methodologies

ASP.NET attempts to make the web development methodology like the GUI development methodology by
allowing developers to build pages made up of controls similar to a GUI. Server controls in ASP.NET function
similarly to GUI controls in other environments..........

Problems ASP.NET Solves

Microsoft developed ASP.NET, which greatly simplifies the web development methodology...........

ASP.NET issues & options

The truth is that ASP.NET has several issues that need to be addressed..........

Explain the advantages of ASP.NET

Web application exists in compiled form on the server so the execution speed is faster as compared to the
interpreted scripts.........

What Is ASP.NET 2.0 AJAX?

AJAX-style communications between client and server. This communication is over web services.
Asynchronous communication. All client-to-server communication in the ASP.NET 2.0 AJAX framework is
asynchronous................

The components in the ASP.NET 2.0 AJAX packaging

ASP.NET AJAX Futures Community Technology Preview (CTP) — The ASP.NET 2.0 AJAX framework
contains a set of functionality that is experimental in nature. This functionality will eventually become
integrated with the RTM/Core code.

Potential benefits of using Ajax

AJAX makes it possible to create better and more responsive websites and web applications...............

Potential problems with AJAX

Search engines may not be able to index all portions of your AJAX application site.........

What Is ASP.NET AJAX?

ASP.NET AJAX is the name of Microsoft’s AJAX solution, and it refers to a set of client and server
technologies that focus on improving web development with Visual Studio...............

Balancing Client and Server Programming with ASP.NET AJAX

With AJAX, much of the logic surrounding user interactions can be moved to the client. This presents its own
set of challenges. Some examples of AJAX use include streaming large datasets to the browser that are
managed entirely in JavaScript..................

ASP.NET Interview questions part 2 includes following questions with answers

Define access modifiers. | Name the namespace for Web page in ASP.NET. | Write difference between
overloading and overriding. | Write Namespace for user locale in ASP.NET. | How do you implement
inheritance in .NET? | Explain the differences between Server-side and Client-side code. | Define ADO.NET
Dataset. | Define global.asax in ASP.NET. | What are the Application_Start and Session_Start subroutines
used for? | Define inline code and code behind. | What is MSIL? | Name the class Web Forms inherit from.

ASP.NET Interview questions part 3 includes following questions with answers

What is Shared (static) member? | What is the transport protocol you use to call a Web service? | What is
Option Strict used for? | Define Boxing and Unboxing. | What does WSDL stand for? | Define ViewState in
ASP.NET. | What is the lifespan for items stored in ViewState? | Define EnableViewState property. | What are
Delegates? | What are Classes? | What is Encapsulation? | Different types of Session state management
options available with ASP.NET? | What methods are fired during the page load? | Explain ADO.NET.

ASP.NET Interview questions part 4 includes following questions with answers

Define Server-side and Client-side code in ASP.NET. | What tag do you use to add a hyperlink column to the
DataGrid? | Where does VS.NET store Web application projects? | Describe Web application’s life cycle |
Define class module and a code module. | Steps to execute a stored procedure from Web Application |
Describe exception handling in ASP.NET | What are the exception-handling ways in ASP.NET?

ASP.NET Interview questions part 5 includes following questions with answers

Describe use of error pages in ASP.NET. | Explain tracing in ASP.NET | What is the use of ComVisible
attribute? | Define Windows and Forms authentication. | What is Secure Sockets Layer (SSL) security? | Why
is the Machine.config file? | Explain how to distribute shared components as part of an installation program? |
Define Unit testing, Integration testing, Regression testing. | Define HTML and XML.

Understanding Anonymous Types

Anonymous types defined with var are not VB variants. The var keyword signals the compiler to emit a strong
type based on the value of the operator on the right side. Anonymous types can be used to initialize simple
types like integers and strings but detract modestly from clarity and add little value..............

Structuring content in Plone

Model View Controller


We will learn about MVC design patterns, and how Microsoft has made our lives easier by creating the
ASP.NET MVC framework for easier adoption of MVC patterns in our web applications...............

Page Controller Pattern in ASP.NET

Here it shows how a page controller pattern works in ASP.NET.

MVC Design

MVC, which stands for Model View Controller, is a design pattern that helps us achieve the decoupling of
data access and business logic from the presentation code , and also gives us the opportunity to unit test the
GUI effectively and neatly, without worrying about GUI changes at all..........

También podría gustarte