ASP.Net, JAVA, PHP, Android, C, C++, C#, DFS, DBMS, SQL Server |
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.
6. What is the difference between ASP Session and ASP.NET Session?
Asp.net session supports cookie less session & it can span across multiple servers.
7. 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.
8. What is the difference between Server.Transfer and response.Redirect?
The Server.Transfer () method stops the current page from executing, and runs
the content on the specified page, when the execution is complete the control is
passed back to the calling page.
While the Response.Redirect () method transfers the control on the specified
page and the control is never passed back to calling page after execution.
9. What is a PostBack?
The process in which a Web page sends data back to the same page on the server.
10. What namespace does the Web page belong in the .NET Framework
class hierarchy? System.Web.UI.Page
11. Whats a bubbled event?
When you have a complex control, like DataGrid, writing an event processing
routine for each object (cell, button, row, etc.) is quite tedious. The controls can
bubble up their event handlers, allowing the main DataGrid event handler to take
care of its constituents.
12. What is the differences between Server-side and Client-side code?
ASP.Net, JAVA, PHP, Android, C, C++, C#, DFS, DBMS, SQL Server |
Static assemblies can include .NET Framework types (interfaces and classes), as
well as resources for the assembly (bitmaps, JPEG files, resource files, and so on).
Static assemblies are stored on disk in portable executable (PE) files.
Dynamic assemblies, which are run directly from memory and are not saved to
disk before execution. You can save dynamic assemblies to disk after they have
executed.
14. What are the difference between Structure and Class?
RequiredFieldValidator
RangeValidator
RegularExpressionValidator
CompareValidator
CustomValidator
ValidationSummary
System.Globalization
System.Resources
ASP.Net, JAVA, PHP, Android, C, C++, C#, DFS, DBMS, SQL Server |
ViewState
QueryString
Cookies
Session
Application
System
System.Collections
System.IO
System.web
System.web.UI
System.web.UI.HTMLControls
System.web.UI.WebControls.
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.
30. What is Delegates?
ASP.Net, JAVA, PHP, Android, C, C++, C#, DFS, DBMS, SQL Server |
@Page
@Control
@Import
@Implements
@Register
@Assembly
@OutputCache
@Reference
ASP.Net, JAVA, PHP, Android, C, C++, C#, DFS, DBMS, SQL Server |
Integer
String.
Date.
40. 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.
41. What is the difference between Server-side scripting and Client-side
scripting?
Server side scripting means that all the script will be executed by the server and
interpreted as needed. ASP doesn't have some of the functionality like sockets,
uploading, etc.
Client side scripting means that the script will be executed immediately in the
browser such as form field validation, clock, email validation, etc. Client side
scripting is usually done in VBScript or JavaScript.
42. How do you create a permanent cookie?
Permanent cookies are available until a specified expiration date, and are stored
on the hard disk.So Set the 'Expires' property any value greater than
DataTime.MinValue with respect to the current datetime. If u want the cookie which
never expires set its Expires property equal to DateTime.maxValue.
ASP.Net, JAVA, PHP, Android, C, C++, C#, DFS, DBMS, SQL Server |
43. Which method do you use to redirect the user to another page without
performing a round trip to the client?
Server.Transfer
Server.Execute.
44. Which method do you use to redirect the user to another page without
performing a round trip to the client?
Server.transfer
45. What tag do you use to add a hyperlink column to the DataGrid?
< asp:HyperLinkColumn > < / asp:HyperLinkColumn >
46. 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.
47. 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.
48. What is a PostBack?
The process in which a Web page sends data back to the same page on the
server.
49. How many languages .NET is supporting now?
When .NET was introduced it came with several languages. VB.NET, C#, COBOL
and Perl, etc. The site DotNetLanguages.Net says 44 languages are supported.
50. What is smart navigation?
The cursor position is maintained when the page gets refreshed due to the server
side validation and the page gets refreshed.
51. How do you validate the controls in an ASP .NET page?
ASP.Net, JAVA, PHP, Android, C, C++, C#, DFS, DBMS, SQL Server |
Using special validation controls that are meant for this. We have Range Validator,
Email Validator
52. 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.
53. Which two properties are on every validation control?
We have two common properties for every validation controls:
Control to Validate
Error Message
54. 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.
55. 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.
56. What is strong-typing versus weak-typing?
Strong typing implies that the types of variables involved in operations are
associated to the variable, checked at compile-time, and require explicit conversion
Weak typing implies that they are associated to the value, checked at run-time,
and are implicitly converted as required.
57. What is boxing and unboxing?
Implicit conversion of value type to reference type of a variable is known as
BOXING, for example integer to object type conversion.
Conversion of reference type variable back to value type is called as UnBoxing.
58. What is garbage collection?
Garbage collection is a system whereby a run-time component takes responsibility
for managing the lifetime of objects and the heap memory that they occupy.
59. What is serialization?
ASP.Net, JAVA, PHP, Android, C, C++, C#, DFS, DBMS, SQL Server |
62. What is namespace used for loading assemblies at run time and name
the methods?
System.Reflection
63. How big is the datatype int in .NET?
32 bits
64. What is difference between abstract classes and interfaces?
Abstract classes can have concrete methods while interfaces have no methods
implemented.
Interfaces do not come in inheriting chain, while abstract classes come in
inheritance.
65. In which event are the controls fully loaded?
Page_load event guarantees that all controls are fully loaded. Controls are also
accessed.
In Page_Init events but you will see that viewstate is not fully loaded during this
event.
ASP.Net, JAVA, PHP, Android, C, C++, C#, DFS, DBMS, SQL Server |
10
70. 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.
71. Whats the difference between Response.Write () and
Response.Output.Write()?
Response.Outout.Write allows us to write the formatted out put.
72. What is the difference between inline and code behind?
Inline code written along with the html and design blocks in an .aspx page.
Code-behind is code written in a separate file (.cs or .vb) and referenced by the
.aspx page.
73. What is the difference between early binding and late binding?
ASP.Net, JAVA, PHP, Android, C, C++, C#, DFS, DBMS, SQL Server |
11
12
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.
83. What is an assembly?
Assemblies are the building blocks of the .NET framework. They are the logical
grouping of the functionality in a physical file.
84. What are different types of Assemblies?
85. Which method do you invoke on the DataAdapter control to load your
generated dataset with data?
DataAdapters fill () method is used to fill load the data in dataset.
86. Which template is to be provided in the Repeater control in order to
display a data?
ItemTemplate
AlternatingItemTemplate.
Increased performance.
Better code management and encapsulation.
It also introduces the n-tier concepts and business logic.
System.Data
System.Data.OleDB
System.Data.SQLClient
13
96. Whats the top .NET class that everything is derived from?
System.Object
97. How is method overriding different from overloading?
When Overriding, you change the method behavior for a derived class.
Overloading simply involves having a method with the same name within the
class.
98. What is the difference between System.String and
System.StringBuilder classes?
System.String is immutable.
System.StringBuilder was designed with the purpose of having a mutable
string where a variety of operations can be performed.
14
Server side code is executed at the server side on IIS in ASP.NET framework.
while client side code is executed on the browser.
Marshal by value
Marshal by reference.
15
108. What is the difference between an abstract method & virtual method?
An Abstract method does not provide an implementation and forces overriding to
the deriving class (unless the deriving class also an abstract class),
Virtual method has an implementation and leaves an option to override it in the
deriving class. Thus Virtual method has an implementation & provides the derived
class with the option of overriding it. Abstract method does not provide an
implementation & forces the derived class to override the method.
109. How many namespaces are in .NET version 1.1?
124
110. What is sealed class
Sealed classes are those classes which can not be inherited and thus any
sealed class member can not be derived in any other class.
A sealed class cannot also be an abstract class.
Server controls
HTML controls
Data controls
System components.
112. 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.
113. What is AutoPostback?
AutoPostBack automatically posts the page back to the server when state of the
control is changed.
114. What is Globalization?
Globalization is the process of creating multilingual application by defining culture
specific features like currency, date and time format, calendar and other issues.
115. What is the main difference between Asp.net and Vb.net?
16
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.
17
18
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.
ASP.NET makes development simpler and easier to maintain with an eventdriven, 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.
ASP.Net, JAVA, PHP, Android, C, C++, C#, DFS, DBMS, SQL Server |
19
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.
134. What is the use of @ Register directives?
@Register directive informs the compiler of any custom server control added to the
page.
135. 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.
136. 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.
137. What are Cascading style sheets?
Cascading style sheets (CSS) collect and organize all of the formatting
information applied to HTML elements on a Web form. Because they keep this
information in a single location, style sheets make it easy to adjust the appearance
of Web applications.
138. What is the base class of .net?
System.object
139. What is the base class of Asp.net?
system.Web.UI
140. what is use of web.config?
20
ASP.Net, JAVA, PHP, Android, C, C++, C#, DFS, DBMS, SQL Server |
21
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.
TheResponse.Cookies command is used to create cookies.
150. 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.
151. 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.
152. 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.
153. How do you indentify that the page is post back?
By checking the IsPostBack property. If IsPostBack is True, the page has been
posted back.
154. what are the types of ASP Objects?
There are various types of Asp objects
Session Object
Application Object
Server Object
Request Object
Request Object
Response Object
Object Context
Error Object
22
Asp.net session supports cookie less session & it can span across multiple servers.
ASP.Net, JAVA, PHP, Android, C, C++, C#, DFS, DBMS, SQL Server |
23