1.
|
What is web.config file?
|
|
Web.config file is the configuration file for the Asp.net web
application. There is one web.config file for one asp.net application which
configures the particular application. Web.config file is written in XML with
specific tags having specific meanings.It includes databa which includes
connections,Session States,Error Handling,Security etc.
|
2.
|
What is the difference between in-proc and out-of-proc?
|
|
An Inproc is one which runs in
the same process area as that of the client giving tha advantage of speed but
the disadvantage of stability becoz if it crashes it takes the client
application also with it.
Outproc is one which works outside the clients memory thus giving stability to the client, but we have to compromise a bit on speed. |
3.
|
What is a PostBack?
|
|
The process in which a Web page sends data back to the same page
on the server.
|
|
4.
|
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.
|
|
5.
|
What is the difference between HTTP-Post and HTTP-Get?
|
|
The GET method creates a query string and appends it to the
script's URL on the server that handles the request.
The POST method creates a name/value pairs that are passed in the body of the HTTP request message. |
|
|
6.
|
What is a Namespace? What is the use of a namespace?
|
|
Namespaces are logical grouping of classes and other types in
hierarchical structure.
Namespaces are useful to avoid collision or ambiguity among the classes and type names. Another use of the namespace is to arrange a group of classes for a specific purpose. |
|
7.
|
What’s the difference between
Codebehind="MyCode.aspx.cs" and Src="MyCode.aspx.cs"?
|
|
Visual Studio uses the Codebehind attribute to distinguish the
page source or programming logic from the design. Also the src attribute will
make the page compile on every request. That is the page will not be compiled
in advance and stored in the bin as a dll instead it will be compiled at run
time.
|
|
8.
|
How many classes can a single .NET DLL contain?
|
|
It can contain many classes.
|
|
9.
|
What methods are fired during the page load?
|
|
·
Init() - when the page is instantiated.
·
Load() - when the page is loaded into server memory.
·
PreRender() - the brief moment before the page is displayed to
the user as HTML.
·
Unload() - when page finishes loading.
|
|
10.
|
What is the difference between Value Types and Reference
Types?
|
|
Value Types uses Stack to store the data.
where as Reference type uses the Heap to store the data. |
11.
|
What is Side-by-Side Execution?
|
|
The CLR allows any versions of the same-shared DLL (shared
assembly) to execute at the same time, on the same system, and even in the
same process. This concept is known as side-by-side execution.
|
|
12.
|
How to view an assembly?
|
|
We can use the tool "ildasm.exe" known as
"Assembly Disassembler" to view the assembly.
|
|
13.
|
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.
|
|
14.
|
What are the layouts of ASP.NET Pages?
|
|
§ GridLayout
§ FlowLayout
GridLayout positions the form object on absolute x and y
co-ordinates of the screen.
FlowLayout positions the form objects relative to each other. |
|
15.
|
What is a a multilingual Website?
|
|
A multilingual Website serves content in a number of languages.
It contains multiple copies for its content and other resources, such as date
and time, in different languages.
|
16.
|
What are the different types of Validation Controls?
|
|
There
are six types of validation controls available :
§ RequiredFieldValidator
§ RangeValidator
§ RegularExpressionValidator
§ CompareValidator
§ CustomValidator
§ ValidationSummary
|
|
17.
|
What is the Web User Control?
|
|
Combines existing Server and/or HTML controls by using VS.Net to
create functional units that encapsulate some aspects of UI. Resides in
Content Files, which must be included in project in which the controls are
used.
|
|
18.
|
What namespaces are necessary to create a localized
application?
|
|
§ System.Globalization
§ System.Resources
|
|
19.
|
What namespace do the ASP.NET Page and LiteralControl classes
belong to?
|
|
System.Web.UI
|
|
20.
|
What is the lifespan for items stored in ViewState?
|
|
Items stored in a ViewState exist for the life of the current
page, including the post backs on the same page.
|
|
|
21.
|
What base class do all Web Forms inherit from?
|
|
System.web.UI.Page class
|
|
22.
|
How can you identify that the page is Postback?
|
|
The page object uses the IsPostBack property to check whether
the page is posted back or not. If the page is postback, this property is set
to true.
|
|
23.
|
How to Create a Cookie?
|
|
Cookie are one of several ways to store data about web site
visitors during the time when web server and browser are not connected.
Common use of cookies is to remember users between visits. Practically,
cookie is a small text file sent by web server and saved by web browser on
client machine.
The“Response.Cookies” command is used to create cookies. |
|
24.
|
How do you identify a Master Page?
|
|
The master page is identified by a special @ Master directive
that replaces the @ Page directive that is used for ordinary .aspx pages.
|
|
25.
|
Explain what a diffgram is and a good use for one?
|
|
The DiffGram is one of the two XML formats that you can use to
render DataSet object contents to XML. For reading database data to an XML
file to be sent to a Web Service.
|
|
|
26.
|
What are the standard event handler parameters for ASP.NET
pages?
|
|
The standard parameter list is (Sender as Object, e as
EventArgs).
|
|
27.
|
What is State management?
|
|
State Management is used to store information requests. The
state management is used to trace the information or data that affect the
state of the applications.
|
|
28.
|
What are three programmatic improvements of ASP.NET over ASP?
|
|
§ Ease of
deployment
§ Improved
session state
§ The use
of code declaration blocks
|
|
29.
|
Write three common properties of all validation controls?
|
|
Three common properties of all validation controls are as
§ Control
to Validate – Provides a control to validate.
§ ErrorMessage–
Dispalys an error message.
§ IsValid–
Specifies if the control’s validation has succeeded or not.
§ Text –
Displays a text for validation control before validation.
|
|
30.
|
Which property can be used to make a control post immediately
to the server upon an event?
|
|
AutoPostBack
|
31.
|
How information about the user’s locale can be accessed?
|
|
The information regarding a user’s locale can be accessed by
using the System.Web.UI.Page.Culture property.
|
|
32.
|
What is the difference between javascript and vbscript?
|
|
Javascript :
JavaScript is a client-side scripting language. JavaScript is used to create interactive web applications supported by the Netscape browser. JavaScript is simple to use, lightweight, and dynamic. Developers can easily embed code functionality for interactive applications inside a web page. Javascript is case sensitive and it will be run on client side. VBScript: VBScript is a server-side scripting language. VBScript is not case sensitive and it will be run on server side. |
|
33.
|
What is a web server?
|
|
A web server delivers requested web pages to users who enter the
URL in a web browser. Every computer on the Internet that contains a web site
must have a web server program.
|
|
34.
|
What file extension does ASP.NET use for Web Services?
|
|
ASP.NET uses the .asmx extension for Web Service files.
|
|
35.
|
What is the base class of .net?
|
|
System.object
|
36.
|
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.
|
|
37.
|
What are Master Pages in ASP.NET?
|
|
ASP.NET master pages allow you to create a consistent layout for
the pages in your application. A single master page defines the look and feel
and standard behavior that you want for all of the pages in your application.
You can then create individual content pages that contain the content you
want to display. When users request the content pages, they merge with the
master page to produce output that combines the layout of the master page
with the content from the content page.
|
|
38.
|
What are the advantages of ASP.Net?
|
|
§ ASP.NET
makes development simpler and easier to maintain with an event-driven,
server-side programming model.
§ ASP.NET
offers built-in security features through windows authentication or other
authentication methods.
§ Content
and program logic are separated which reduces the inconveniences of program
maintenance.
§ Built-in
caching features.
|
|
39.
|
What is event bubbling?
|
|
Server controls like Data grid, Data List, and Repeater can have
other child controls inside them. Example Data Grid can have combo box inside
data grid. These child control do not raise there events by themselves,
rather they pass the event to the container parent (which can be a data grid,
data list, repeater), which passed to the page as “ItemCommand” event. As the
child control send events to parent it is termed as event bubbling.
|
|
40.
|
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. |
41.
|
What is the difference between an ADO.NET Dataset and an ADO
Recordset?
|
|
§ A
DataSet can represent an entire relational database in memory, complete with
tables, relations, and views.
§ A
DataSet is designed to work without any continuing connection to the original
data source.
§ 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.
|
|
42.
|
What are the validation controls?
|
|
A set of server controls included with ASP.NET that test user
input in HTML and Web server controls for programmer-defined requirements.
Validation controls perform input checking in server code. If the user is
working with a browser that supports DHTML, the validation controls can also
perform validation using client script.
|
|
43.
|
What is the difference between “Web.config” and
“Machine.Config”?
|
|
§ “Web.config”
files apply settings to each web application.
§ While
“Machine.config” file apply settings to all ASP.NET applications.
|
|
44.
|
What is event bubbling?
|
|
Server controls like Data grid, Data List, and Repeater can have
other child controls inside them. Example Data Grid can have combo box inside
data grid. These child control do not raise there events by themselves,
rather they pass the event to the container parent (which can be a data grid,
data list, repeater), which passed to the page as “ItemCommand” event. As the
child control send events to parent it is termed as event bubbling.
|
|
45.
|
What is the use of @ Register directives?
|
|
@Register directive informs the compiler of any custom server
control added to the page.
|
|
|
46.
|
What is AutoPostback?
|
|
AutoPostBack automatically posts the page back to the server
when state of the control is changed.
|
|
47.
|
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.
|
|
48.
|
What is the main difference between Asp.net and Vb.net?
|
|
§ Asp.net
is a web technology used for designing webforms and Vb.net is a programming
language
§ ASP.NET
is a powerful technology for writing dynamic web pages.
§ ASP.NET
is a way of creating dynamic web pages while making use of the innovations
present in .NET.
§ VB.NET
is a language.But ASP.NET is the Environment where we can create websites or
webpages.
|
|
49.
|
Is string a value type or a reference type?
|
|
Srting is a Reference type.It can create a new instance at every
time.
|
50.
|
What base class do all Web Forms inherit from?
|
|
System.web.UI.Page class
|
No comments:
Post a Comment