|
ASP.NET interview questions - part 1
Latest answer: Login control provides form authentication. If we implement for
authentication through form authentication then we do it through
code. On the other hand, login control allows the easy
implementation............... Read
answer
Latest answer: Fragment caching allows to cache specific portions of the page
rather than the whole page. It is done by implementing the page in
different parts............ Read answer
Latest answer: When there is a need to keep the business logic separate from the
User Interface or when there is some class which is big enough to
have multiple number of developers............ Read
answer
Latest answer: From HTML
inasppage:<ahref="abc.aspx?qstring1=test">Test Query String</a> From
server side code: <%response.redirect
"webform1.aspx?id=11"%>............... Read answer
Latest answer: If a site happens to not maintain a ViewState, then if a user has
entered some information in a large form with many input fields and
the page is refreshes, then the values filled up in the form are
lost........... Read answer
Latest answer: With the ‘src’ attribute, the source code files are deployed and
are compiled by the JIT as needed. Though the code is available
to everyone with an access to the server (NOT anyone on the
web)................ Read
answer
Latest answer: A URL (Uniform Resource Locator) is the address of some resource
on the Web. A resource is nothing but a page of a site. There are
other type of resources than Web pages, but that's the easiest
conceptually........... Read
answer
Latest answer: Previously, in ASP.NET, the pages and the code used to be
compiled dynamically and then cached so as to make the requests to
access the page extremely efficient............ Read
answer
Latest answer: Custom controls are user defined controls. They can be created by
grouping existing controls, by deriving the control from
System.Web.UI.WebControls.......... Read
answer
Latest answer: It's a way in CLR to maintain a boundary between various
applications to ensure that they do not interfere in working of any
other application........... Read
answer
Latest answer: SAO Server Activated Object (call mode): lasts the lifetime of
the server. They are activated as SingleCall/Singleton objects. It
makes objects stateless........... Read
answer
Latest answer: Remoting has at least three sections:-
1. Server 2. Client: This connects to the hosted remoting
object 3. Common Interface between client and the server .i.e.
the channel.......... Read
answer
Latest answer: Singleton architecture is to be used when all the applications
have to use or share same data........... Read
answer
Latest answer: The LeaseTime property protects the object so that the garbage
collector does not destroy it as remoting objects are beyond the
scope of the garbage collector. Every object created has a default
leasetime for which it will be activated.......... Read
answer
Latest answer: The remoting parameters can be specified through both programming
and in config files. All the settings defined in config files are
placed under <system.runtime.remoting>........... Read
answer
Latest answer: Marshaling is a process of transforming or serializing data from
one application domain and exporting it to another application
domain........... Read answer
Latest answer: ObjRef is a searializable object returned by Marshal() that knows
about location of the remote object, host name, port number, and
object name........ Read answer
Latest answer: Every service listed has a URI pointing to the service's DISCO or
WSDL document, which is needed to access the webservice and its
'webmethod" methods.......... Read
answer
Latest answer: Create a new website by selecting "ASP.NET Web Site" and giving
it a suitable name. service.cs file appears inside the solution
with a default webmethod named as "HelloWorld()"........ Read
answer
Latest answer: Application Object: Application variable/object stores an Object
with a scope of availability of the entire Application unless
explicitly destroyed............. Read
answer
Latest answer: The cache object has dependencies e.g. relationships to the file
it stores. Cache items remove the object when these dependencies
change. As a work around we would need to simply execute a callback
method............ Read answer
Latest answer: A process where items are removed from cache in order to free the
memory based on their priority. A property called
"CacheItemPriority" is used to figure out the priority of each item
inside the cache........... Read answer
Latest answer: Page output: Is used to fetch information or data at page level.
It is best used when the site is mainly static. Used by declaring
the output page directive............ Read answer
Latest answer: The ways to cache different versions on the same page using
ASP.NET cache object is using OutputCache object............ Read
answer
Latest answer: Fragment cache is to store user controls individually within a
web form in cache instead of the whole webform as such. The idea is
to simply have different cache parameters for different user
controls............. Read
answer
Latest answer: Types of sessions: InProc: The default way to use sessions.
InProc is the fastest way to store and access
sessions........... Read
answer
Latest answer:
Advantages: Easy to implement, Hidden fields are
supported by all browsers, Enables faster access of information
because data is stored on client side............ Read
answer
Latest answer:
Advantages: Hidden frames allow you to
cache more than one data field, The ability to cache and access
data items stored in different hidden forms........... Read
answer
Latest answer:
Advantages: They are simple to
use. Light in size, thus occupy less memory. Stores server
information on client side. Data need not to be sent back to
server........ Read
answer
Latest answer: Querystring is way to transfer information from one page to
another through the URL........ Read
answer
Latest answer: Absolute and
sliding expiration are two Time based expiration strategies.
Absolute Expiration: Cache in this case expires at a
fixed specified date or time.............. Read
answer
Latest answer: Cross-page posting is done at the control level. It is possible
to create a page that posts to different pages depending on what
button the user clicks on. It is handled by done by changing the
postbackurl property of the controls.......... Read
answer
Latest answer: PreviousPage
property is set to the page property of the nest page to access the
viewstate value of the page in the next page. Page poster =
this.PreviousPage;.......... Read
answer
Latest answer: SQL Cache Dependency in ASP.NET: It is the mechanism where the
cache object gets invalidated when the related data or the related
resource is modified......... Read answer
Latest answer: Post Cache Substitution: It works opposite to fragment caching.
The entire page is cached, except what is to be kept dynamic. When
[OutputCache] attribute is used, the page is
cached............ Read
answer
Latest answer: Users of different countries, use different languages and others
settings like currency, and dates. Therefore, applications are
needed to be configurable as per the required settings based on
cultures, regions, countries........ Read
answer
Latest answer: Code Page was used before Unicode came into existence. It was a
technique to represent characters in different
languages.......... Read
answer
Latest answer: Resource files are files in XML format. They contain all the
resources needed by an application. These files can be used to store
string, bitmaps, icons, fonts........ Read
answer
Latest answer: To support the feature of multiple languages, we need to create
different modules that are customized on the basis of localization.
These assemblies created on the basis of different modules are knows
as satellite assemblies........... Read
answer
Latest answer: Al.exe: It embeds the resources into a satellite assembly. It
takes the resources in .resources binary format....... Read
answer
Latest answer:
ResourceManager class: It provides convenient access to resources
that are culture-correct. The access is provided at run
time......... Read
answer
Latest answer: WCF is a framework that builds applications that can
inter-communicate based on service oriented architecture consuming
secure and reliable web services............. Read
answer
Latest answer: A service-oriented architecture is collection of services which
communicate with one another other...... Read answer
Latest answer: WCF Service is composed of three components: Service class: It
implements the service needed, Host environment: is an environment
that hosts the developed service............. Read answer
Latest answer: WCF can create services similar in concept to ASMX, but has much
more capabilities. WCF is much more efficient than ASP.Net coz it is
implemented on pipeline............ Read answer
Latest answer:
BasicHttpBinding, WSHttpBinding, WSDualHttpBinding....... Read
answer
Latest answer: Duplex contract: It enables clients and servers to communicate
with each other. The calls can be initiated independently of the
other one............. Read answer
Latest answer: Read Uncommitted: - Also known as Dirty isolation level. It makes
sure that corrupt Data cannot be read. This is the lowest isolation
level............ Read
answer
Latest answer: Volatile Queues: There are scenarios in the project when you want
the message to deliver in proper time. The timely delivery of
message is very more important and to ensure they are not lost is
important too. Volatile queues are used for such
purposes............. Read answer
Latest answer: Windows Workflow Foundation (WF): It is a
platform for building, managing and executing workflow-enabled
applications, for designing and implementing a programming model
.......... Read
answer
Latest answer: There are 3 types of workflows in WWF: Sequential Workflow: The
sequential workflow style executes a set of contained activities in
order, one by one and does not provide an option to go back to any
step........... Read answer
Latest answer: XOML is an acronym for Extensible Object Markup Language. XOML
files are the markup files. They are used to declare the workflow
and are then compiled with the file containing the implementation
logic.............. Read answer
Latest answer: Microsoft's Internet Information Services web server software is
used to make an application offline. The IIS is instructed to route
all incoming requests for the web site to another URL
automatically........ Read
answer
Latest answer: Script injection attacks called Cross-site scripting (XSS)
attacks exploit vulnerabilities in Web page validation by injecting
client-side script code............. Read
answer
Latest answer:
Authentication is the process of verifying user’s details and
find if the user is a valid user to the system or not. This process
of authentication is needed to provide authority to the
user........ Read answer
Latest answer:
Authorization is a process that takes place based on the
authentication of the user. Once authenticated, based on user’s
credentials, it is determined what rights des a user
have........... Read answer
Login controls are part of ASP. Net’s UI
controls collection which allows users to enter their username and
password to login to a website/application. They provide login
solution without the need of writing code........... Read
answer
Fragment caching does not cache a WebForm,
rather it allows for caching of individual user controls within a
Web Form, where each control can have different cache duration and
behavior........... Read answer
.Net2.0 supports the concept of partial
classes which is unlike the concept of one class one file. In .Net
technology, one can define a single class over multiple files using
the concept of partial classes............ Read answer
Yes you can do it using a hyperlink <a href="Abc.aspx?name=test">Click to go
to aspx </a>............. Read answer
Also
Read
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..........
Web
application exists in compiled form on the server so the execution
speed is faster as compared to the interpreted scripts.........
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..................
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..............
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...............
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..........
Page
Controller Pattern in ASP.NET
Here it shows how a page controller pattern works in ASP.NET.
Send
request to get more ASP.NET,
C++ questions, sample CV and personal interview tips
in PDF
format
|