- 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: 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: 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 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: 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: 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: 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: What is difference between singleton and single call?

Answer: Differneces between 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 information betweenmethod calls. However, Single Call objects can be configured in aload-balanced fashion.Singleton objects are those objects that service multiple clients and henceshare da Source:
Question: How to rename a table using sql queries?

Answer: This done by

exec sp_rename 'oldTableName' , 'newTableName'
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: 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: 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: 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: What tags do you need to add within the asp:datagrid tags to bind columns manually.

Answer: Ans:

<HeaderTemplate >

<%# DataBinder.Eval(Container, "DataItem.columnname") %>


Question: Whenever I am inserting an item in the listbox i.e. list1.items.add (item), I want to add an link button (eg. Remove) for each of the listitem entered.
When I will click on the link button, the corrosponding listitem will be removed.
Please help me in this matter.
Substitute of the listbox can be any other control.


Answer: Here i wirte the coding for removing the selcted item from the listbox when we click a button.
In case if this is not u r expectation then send a mail to me....

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim n As Integer
n = ListBox1.Items.Count
End Sub Source:
Question: Explain the differences between Server-side and Client-side code?

Answer: Server side code is executed at the server and written in VB Code whereas client side code is executed at the client side. Mostly client side coding is done in Javascrit.

The reason why we do client side validations is to save the to and fro time taken for the request to go to the server and the response to get back to the browser.
Question: what is differance b/w vb and .net framework

Answer: vb dont support clr but .net support clr envriornment.

vb do not have ide .net framework have ide

vb is a procedure orinted language and .net is pure object orinted language.

vb do not support xml .net framework support xml Source:
Question: What is an assembly

Answer: Assembly is a collection of code files , types and resources. It is a unit of deployment,version cotrol and reuse.Assembly is basically collection of exe or dll files which are generated upon successfull compilation of the .Net application Source:
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: Which template must you provide, in order to display data in a Repeater control?

Answer: itemtemplate Source:
Question: What is PreProcessor in .NET and type , where it use

Answer: The pre-processing directives provide the ability to conditionally skip sections of source files, to report error and warning conditions, and to delineate distinct regions of source code. The term "pre-processing directives" is used only for consistency with the C and C++ programming languages. In C#, there is no separate pre-processing step; pre-processing directives are processed as part of the lexical analysis phase.
A preprocessor directive must be the only instruction on a line. Preproce 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.390625 Seconds