- World's Largest Collection of Interview Questions & Answers, FAQs, queries, sample papers, exam papers, dumps, what, why, how, where, when questions
Our Services
Get 9,000 Interview Questions & Answers in an eBook.

Get it now !!
Send your Resume to 6000 Companies
ASP.NET 2.0 Interview Questions & Answers - Learning Mode

ASP.NET 2.0 Interview Questions & Answers - Learning Mode

ASP.NET is a web application framework developed and marketed by Microsoft, that programmers can use to build dynamic web sites, web applications and web services. ASP.NET is an open-source server-side web application framework designed for web development to produce dynamic web pages. It was developed by Microsoft to allow programmers to build dynamic web sites, web applications and web services.

Try ASP.NET 2.0 Interview Questions & Answers - Exam Mode

1 2 3 4 5 6 Next

Sort By : Latest First | Oldest First | By Rating

ASP.NET 2.0 Interview Questions & Answers - Learning Mode
Try ASP.NET 2.0 Interview Questions & Answers - Exam Mode
Question: What is CLR?

Answer: First of all, VB.NET provides managed code execution that runs under the Common Language Runtime (CLR), resulting in robust, stable and secure applications. All features of the .NET framework are readily available in VB.NET.

The CLR takes care of garbage collection i.e. the CLR releases resources as soon as an object is no more in use. This relieves the developer from thinking of ways to manage memory. CLR does this for them.

Question: Which dll handles the request of .aspx page?

Answer: When the Internet Information Service process (inetinfo.exe) receives an HTTP request, it uses the filename extension of the requested resource to determine which Internet Server Application Programming Interface (ISAPI) program to run to process the request. When the request is for an ASP.NET page (.aspx file), IIS passes the request to the ISAPI DLL capable of handling the request for ASP.NET pages, which is aspnet_isapi.dll. Source:
Question: How do you create a permanent cookie?

Answer: Setting a permanent cookie is similar to Session cookie, except give the cookie an expiration date too. It is very common that you don't specify any arbitrary expiration date, but instead expire the cookie relative to the current date, using the DateAdd() function.

Response.Cookies("Name") = "myCookie"
Response.Cookies("Name").Expires = DateAdd("m", 1, Now()) Source:
Question: How to create dynamic Gridview?

Answer: Many times we have the requirement where we have to create columns dynamically.
This article describes you about the dynamic loading of data using the DataTable as the datasource.

Details of the Grid

Let?s have a look at the code to understand better.

Create a gridview in the page,

Drag and drop the GridView on to the page

Manually type GridView definition in the page.
public partial class _Default : System.Web.UI.Page

< Source:
Question: What is IPostBack? How to use it?

Answer: Gets a value indicating whether the page is being loaded in response to a client postback, or if it is being loaded and accessed for the first time.
Property Value

true if the page is being loaded in response to a client postback; otherwise, false.

void Page_Load() {
if (!IsPostBack) {
// Validate initially to force asterisks
// to appear before the first roundtrip.
} Source:
Question: How to pass text box values to an XML?

Answer: //declare an XMLDoc and Attribute<br>dim Attr as XmlAttribute<br>dim doc as XmlDoc<br>doc.load("yourXMLpath")<br>'Create an Element <br>Dim elem As XmlElement = doc.CreateElement("Person")<br>'Create an Attribute<br> Attr = doc.CreateAttribute("Fname")<br>'Assign the value of ur text box <br> Attr.Value = txtFirstName.Text<br> elem.Attributes.SetNamedItem(Attr)<br> Attr = doc.CreateAttribute Source:
Question: Can you explain what inheritance is and an example of when you might use it?

Answer: Inheritance helps in the reusability of the code. The class from which another class is derived is called base class. Those methods of the base class can be overridden. The deried class can also implement the methids of the base class. does not allow multiple inheritance. But multi level inheritance is possible. For eg. Class B derives from Class A, and class C can derive from Class B and so on...

One example in layman terms will be the example of a car. We can define the general f Source:
Question: If we remove web.config or machine.config from the application
then, Is this application will works?

Answer: If we remove the web.config file from the application it will work.

unless it doesnt have the things like connectionstring etc. Source:
Question: What is the transport protocol you use to call a Web service SOAP

Answer: Web service use only three types of protocal. first HTTP-GET,HTTP-POST and SOAP.
Question: 1.How to enter same record twice in target table? give me syntax.

2. How to get particular record from the table in informatica?

3.How to create primary key only on odd numbers?

4. how to get the records starting with particular letter like A in informatica?

Answer: Declere Target table twice in the mapping and move the output to both the target tables. Source:
Question: What is Viewstate?

Answer: The web is a stateless medium - state is not maintained between client requests by default. Technologies must be utilized to provide some form of state management if this is what is required of your application, which will be the case for all but the simplest of web applications. ASP.NET provides several mechanisms to manage state in a more powerful and easier to utilize way than classic ASP.

Page level state is information maintained when an element on the web form page causes a subsequ Source:
Question: Web service support

a) Data set
b) dataReader
c) both of above
d) none of above

Answer: Ans : a) Data Set

Web service support Data Set and not support data reader
Question: What are client activated objects and server activated objects?

Answer: 1. Basically for a SAO, the lifetime of the object is controlled by server, whereas for a CAO, the lifetime is controlled by the client.Below are definitions from MSDN. Server activated objects includes Single Call & Singleton.Single Call objects service one and only one request coming in. Single Callobjects are useful in scenarios where the objects are required to do afinite amount of work. Single Call objects are usually not required tostore state information, and they cannot hold state inform Source:
Question: Name some of the Microsoft Application Blocks. Have you used any? Which ones?

Answer: Exception Management Logging Data Access User Interface Caching Application Block for .NET Asynchronous Invocation Application Block for .NET Configuration Management Application Block for .NET (there are others) We use Exception and Data Access Source:
Question: Where would you use an iHTTPModule, and what are the limitations of any

Answer: IHttpModule is used when u want to add u r own module or extra module so that when u request u r module also gets called.First and foremost httpmodules are used when u make request for a page.While processing the page some modules gets called.Some example modules are security module etc.If u want add a module to be used when processing request u add/implement ihhtp moduleok "Happy Programming" Source:
Question: what is the difference between a defect and an enhancement?

Answer: Defect: Defect is the problem or error found in the application while testing, which is unnecessary or which my hindrant to the other functions of the application.

Enhancement: Its the additional feature or functionality found and added to the application as desired by the end user/real word customer or tester during the testing process.

Question: How would you get ASP.NET running in Apache web servers - why would you even do this?

Answer: The mod_mono Apache module is used to run ASP.NET applications within the Apache ( web server. Mod_mono is available from ( is a standalone web server written in C# that can be used to run your ASP.NET applications. XSP works under both the Mono and Microsoft runtimes and the code is available from( Source:
Question: How do we get only edited/deleted/inserted records from a Dataset?

Answer: Data set maintains state of each row. For new entry row state is Inserted, For modified row it is Modifies and for deleted row , the row state is deleted. Source:
Question: Describe the difference between inline and code behind - which is best in a

Answer: Inline code written along side the html in a page. Code-behind is code written in a separate file and referenced by the .aspx page.

Question: What is the standard you use to wrap up a call to a Web service

Answer: We use Soap standard to wrap calls to web service.Soap stands for Simple Object Access Protocol Source:

1 2 3 4 5 6 Next

India News Network
Latest 20 Questions
Payment of time- barred debt is: (a) Valid (b) Void (c) Illegal (d) Voidable
Consideration is defined in the Indian Contract Act,1872 in: (a) Section 2(f) (b) Section 2(e) (c) Section 2(g) (d) Section 2(d)
Which of the following is not an exception to the rule, "No consideration, No contract": (a) Natural love and affection (b) Compensation for involuntary services (c) Completed gift (d) Agency
Consideration must move at the desire of: (a) The promisor (b) The promisee (c) The promisor or any other party (d) Both the promisor and the promisee
An offer which is open for acceptance over a period of time is: (a) Cross Offer (b) Counter Offer (c) Standing Offer (d) Implied Offer
Specific offer can be communicated to__________ (a) All the parties of contract (b) General public in universe (c) Specific person (d) None of the above
_________ amounts to rejection of the original offer. (a) Cross offer (b) Special offer (c) Standing offer (d) Counter offer
A advertises to sell his old car by advertising in a newspaper. This offer is caleed: (a) General Offer (b) Special Offer (c) Continuing Offer (d) None of the above
In case a counter offer is made, the original offer stands: (a) Rejected (b) Accepted automatically (c) Accepted subject to certain modifications and variations (d) None of the above
In case of unenforceable contract having some technical defect, parties (a) Can sue upon it (b) Cannot sue upon it (c) Should consider it to be illegal (d) None of the above
If entire specified goods is perished before entering into contract of sale, the contract is (a) Valid (b) Void (c) Voidable (d) Cancelled
______________ contracts are also caled contracts with executed consideration. (a) Unilateral (b) Completed (c) Bilateral (d) Executory
A offers B to supply books @ Rs 100 each but B accepts the same with condition of 10% discount. This is a case of (a) Counter Offer (b) Cross Offer (c) Specific Offer (d) General Offer
_____________ is a game of chance. (a) Conditional Contract (b) Contingent Contract (c) Wagering Contract (d) Quasi Contract
There is no binding contract in case of _______ as one's offer cannot be constructed as acceptance (a) Cross Offer (b) Standing Offer (c) Counter Offer (d) Special Offer
An offer is made with an intention to have negotiation from other party. This type of offer is: (a) Invitation to offer (b) Valid offer (c) Voidable (d) None of the above
When an offer is made to the world at large, it is ____________ offer. (a) Counter (b) Special (c) General (d) None of the above
Implied contract even if not in writing or express words is perfectly _______________ if all the conditions are satisfied:- (a) Void (b) Voidable (c) Valid (d) Illegal
A specific offer can be accepted by ___________. (a) Any person (b) Any friend to offeror (c) The person to whom it is made (d) Any friend of offeree
An agreement toput a fire on a person's car is a ______: (a) Legal (b) Voidable (c) Valid (d) Illegal
Cache = 0.328125 Seconds