Professional Documents
Culture Documents
D. Harsha Vardhan
What is ASP.NET?
ASP.NET is a server side scripting technology that enables scripts (embedded in web pages) to be
executed by an Internet server.
ASP.NET is a specification developed by Microsoft to create dynamic Web applications, Web sites and
Web services.
It is a part of .NET Framework.
The ASP.NET compiles the Web Pages and provides much better performance than scripting languages,
such as VBScript.
The Web Forms support to create powerful forms based Web pages.
ASP.NET Web server controls to create interactive Web applications with the help of Web server
controls, you can easily create a Web application.
What is a Cookie?
Cookie is a lightweight executable program, which the server posts to client machines.
Cookies store the identity of a user at the first visit of the Web site and validate them later of the next
visits for their authenticity.
The values of a cookie can be transferred between the users request and the servers response.
What is the difference between ASP Session State and ASP.Net Session State?
ASP session state relies on cookies, Serialize all requests from a client, does not survive process
shutdown, Can not maintained across machines in a Web farm.
Session
Context
Trace
What is a PostBack?
The process in which a Web page sends data back to the same page on the server.
What is AutoPostBack?
If you want a control to postback automatically when an event is raised, you need to set the
AutoPostBack property of the control to True.
D. Harsha Vardhan
Which Asp.net objects encapsulate the state of the client and the browser?
The Session object encapsulates the state of the client and browser.
D. Harsha Vardhan
What is ViewState?
ViewState is a .Net mechanism to store the posted data among post backs. ViewState allows the state of
objects to be stored in a hidden field on the page, saved on client side and transported back to server
whenever required.
What are the different ways to send data across pages in Asp.net?
The following two ways are used to send data across pages in Asp.net:
Session
Public properties
D. Harsha Vardhan
Which method do you use to redirect the user to another page without performing a round
trip to the client?
Server.Transfer
Server.Execute.
Which method do you use to redirect the user to another page without performing a round trip to the
client?
Server.transfer
D. Harsha Vardhan
How do you turn off cookies for one page in your site?
Use Cookie.Discard property, Gets or sets the discard flag set by the server. When true, this property
instructs the client application not to save the Cookie on the user's hard disk when a session ends.
What are the event handlers that can be included in the Global.asax file?
The Global.asax file contains some of the following important event handlers:
Application_Error
Application_Start
Application_End
Session_Start
Session_End
What Asp.net objects encapsulate the state of the client and the browser?
The Session Object.
Which class is inherited when an Asp.net server control is added to a Web form?
The System.Web.UI.Webcontrols class is inherited when an Asp.net server controls is added to a web
form.
D. Harsha Vardhan
Define RequiredFieldValidator?
It checks whether the control have any value. It's used when you want the control should not be empty.
What are the different types of Session state management options available with ASP.NET?
ASP.NET provides In-Process and Out-of-Process state management. In-Process stores the session in
memory on the web server. Out-of-Process Session state management stores data in an external data
D. Harsha Vardhan
source. The external data source may be either a SQL Server or a State Server service. Out-of-Process
state management requires that all objects stored in session are serializable.
Can you give an example of what might be best suited to place in the Application_Start and
Session_Start subroutines?
All the global declarations or the variables used commonly across the application can be deployed under
Application_Start. All the user specific tasks or declarations can be dealt in the Session_Start subroutine.
D. Harsha Vardhan
Cookies
Session
Application
What is Remoting?
Remoting is a means by which one operating system process, or program, can communicate with
another process. The two processes can exist on the same computer or on two computers connected by
a LAN or the Internet.
D. Harsha Vardhan
What is a formatter?
A formatter is an object that is responsible for encoding and serializing data into messages on one end,
and deserializing and decoding messages into data on the other end.
D. Harsha Vardhan
Which are the namespaces that are imported automatically by Visual Studio in ASP.Net?
D. Harsha Vardhan
What is AutoPostback?
AutoPostBack automatically posts the page back to the server when state of the control is changed.
What is the difference between Web server controls and Custom user Controls in Asp.net?
The Asp.net Web server controls are objects on the Asp.net pages that run when the Web page is
requested. Many Web server controls such as button and text box, are similar to the HTML controls.
The Custom user controls are the controls that are defined by developers. These controls are a mixture
of custom behavior and predefined behavior.
These controls work similar to other Web server controls.
D. Harsha Vardhan
DataSets have no current record pointer You can use For Each loops to move through the data.
Though the DataSet is universal, other objects in ADO.NET come in different versions for different data
sources.
Data in a DataSet is bulk-loaded, rather than being loaded on demand.
You can store many edits in a DataSet, and write them to the original data source in a single operation.
D. Harsha Vardhan
What are the various security methods which IIS Provides apart from .NET?
The various security methods which IIS provides are :
Authentication Modes.
IP Address and Domain Name Restriction.
DNS Lookups DNS Lookups.
Though the DataSet is universal, other objects in ADO.NET come in different versions for different
data sources.
The Network ID and Subnet Mask.
SSL.
repeater), which passed to the page as ItemCommand event. As the child control send events to
parent it is termed as event bubbling.
What is WSDL?
WSDL stands for Web Services Description Language is an XML-based language for describing Web
services and how to access them.
WSDL is used to describe Web services.
D. Harsha Vardhan
What are the standard event handler parameters for ASP.NET pages?
The standard parameter list is (Sender as Object, e as EventArgs).
D. Harsha Vardhan
Which property can be used to make a control post immediately to the server upon an event?
AutoPostBack
D. Harsha Vardhan
What namespace do the ASP.NET Page and LiteralControl classes belong to?
System.Web.UI
D. Harsha Vardhan
Which are the namespaces that are imported automatically by Visual Studio in ASP.Net?
There are 7 namespaces which are imported automatically.
System
System.Collections
System.IO
System.web
System.web.UI
System.web.UI.HTMLControls
System.web.UI.WebControls.
D. Harsha Vardhan
D. Harsha Vardhan
with specific tags having specific meanings.It includes databa which includes connections,Session
States,Error Handling,Security etc.
What is a PostBack?
The process in which a Web page sends data back to the same page on the server.
Which control would you use if you needed to make sure the values in two different controls
matched?
CompareValidator is used to ensure that two fields are identical.
D. Harsha Vardhan
How does ASP.NET work with the client and server machines?
ASP.NET uses client-side code to send messages back to the server. Thus, the server can be aware of
what's happening on the client.
How do you turn off cookies in one page of your asp.net application?
We may not use them at the max, However to allow the cookies or not, is client side functionality.
What namespaces must you import to use data mechanisms in your ASP.NET pages?
System.Data, and optionally either System.Data.OleDb or System.Data.SQL. These provide additional
methods and objects that allow you to work with databases.
D. Harsha Vardhan
What is the difference between page level caching and fragment caching?
In the page level caching, an entire Web page is cached; whereas, in the fragment caching, a part of the
Web page, such as a user control added to the Web page, is cached.
What is an ArrayList?
The ArrayList object is a collection of items containing a single data type values.
D. Harsha Vardhan
What's the difference between the Debug class and Trace class?
Documentation looks the same.
Use Debug class for debug builds.
use Trace class for both debug and release builds.
What is Marshalling?
Marshaling is a process of making an object in one process (the server) available to another process (the
client). There are two ways to achieve the marshalling.
Marshal by value
Marshal by reference.
D. Harsha Vardhan
How do you turn off cookies for one page in your site?
Use the Cookie. Discard Property which Gets or sets the discard flag set by the server. When true, this
property instructs the client application not to save the Cookie on the users hard disk when a session
ends.
D. Harsha Vardhan
What is RangeValidator?
RangeValidator - checks whether a value falls within a given range of number, date or string.
What is ValidationSummary?
ValidationSummary - It show a summary of errors raised by each control on the page on a specific spot
or in a message box.
D. Harsha Vardhan
D. Harsha Vardhan
What is reflection?
All .NET compilers produce metadata about the types defined in the modules they produce. This
metadata is packaged along with the module (modules in turn are packaged together in assemblies),
and can be accessed by a mechanism called reflection.
The System.Reflection namespace contains classes that can be used to interrogate the types for a
module/assembly.
What namespace does the Web page belong in the .NET Framework class hierarchy?
System.Web.UI.Page
D. Harsha Vardhan
What is datagrid?
The DataGrid Web server control is a powerful tool for displaying information from a data source. It is
easy to use; you can display editable data in a professional-looking grid by setting only a few properties.
At the same time, the grid has a sophisticated object model that provides you with great flexibility in
how you display the data.
D. Harsha Vardhan
D. Harsha Vardhan
What is serialization?
Serialization is the process of converting an object into a stream of bytes.
Deserialization is the opposite process of creating an object from a stream of bytes. Serialization /
Deserialization is mostly used to transport objects.
Un-Managed Code: Code that is created without regard for the conventions and requirements of the
common language runtime. Unmanaged code executes in the common language runtime environment
with minimal services (for example, no garbage collection, limited debugging, and so on).
What is Delegates?
Delegates are a type-safe, object-oriented implementation of function pointers and are used in many
situations where a component needs to call back to the component that is using it. Delegates are
generally used as basis of events, which allow any delegate to easily be registered for as event.
D. Harsha Vardhan
What is a DataSet?
A DataSet is an in memory representation of data loaded from any data source.
D. Harsha Vardhan