- 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 Interview Questions & Answers - Learning Mode

ASP.NET 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 Interview Questions & Answers - Exam Mode

1 2 3 4 5 6 7 8 Next

Sort By : Latest First | Oldest First | By Rating

ASP.NET Interview Questions & Answers - Learning Mode
Try ASP.NET Interview Questions & Answers - Exam Mode
Question: What are different properties provided by Object-oriented systems ? Can you explain different properties of Object Oriented Systems? Whats difference between Association , Aggregation and Inheritance relationships?

Answer: Object Oriented Systems have following properties:

provide support for complex data types
support inheritance
provides encapsulation of data
provides extensibility of existing data types and classes
Inheritance is the process of acquiring the behavior of the inherited class and having access to its properties, methods thereby reducing the total number of lines of code.

Aggregation is a part whole relationship. eg.A document comprises of pages. (aggregation of pages)
Question: How we implement Web farm and Web Garden concept in ASP.NET?At least give an example

Answer: A web farm is a multi-server scenario. So we may have a server in each state of US. If the load on one server is in excess then the other servers step in to bear the brunt.
How they bear it is based on various models.
1. RoundRobin. (All servers share load equally)
2. NLB (economical)
3. HLB (expensive but can scale up to 8192 servers)
4. Hybrid (of 2 and 3).
5. CLB (Component load balancer).
A web garden is a multi-processor setup. i.e., a single server (not like the multi Source:
Question: How can we use web service web service in c# windows application that is developed in visual studio?

Answer: 1: Create a new c# windows application

2: Add a web reference using Project > Add Web Reference

3: Enter the URL of the web service that you have generated
A new namespace will be generated with the name of the server and a class called Service1 which derives from :

4: Add a click event to a button and create a new instance of the proxy class
eg: localhost.Service1 ws = new localhost.Service1();
t Source:
Question: what is the difference between webpage,webserver,website and web application ?

Answer: webapplication is a collection of webresources,
webresources cab be static resource like xml,html... and dyanamic resources like asp,jsp..
website is a collection of webpages
webserver is a server where we run our webapplication i.e iis Source:
Question: what do you mean by web service?

Answer: The term Web services describes a standardized way of integrating Web-based applications using the XML, SOAP, WSDL and UDDI open standards over an Internet protocol backbone. XML is used to tag the data, SOAP is used to transfer the data, WSDL is used for describing the services available and UDDI is used for listing what services are available. Used primarily as a means for businesses to communicate with each other and with clients, Web services allow organizations to communicate data without i Source:
Question: What is the difference between Session and Cookies. Can we use both in the same webpage. when we should go for cookies.. What are the advantages and disadvantages of both.. Plz send me code also..

Answer: As far as my knowledge is concerned, cookies are stored on client side where as sessions are server variables. The storage limitations are also there (like IE restricts the size of cookie to be not more than 4096 bytes). We can store only a string value in a cookie where as objects can be stored in session variables. The client will have to accept the cookies in order to use cookies, there is no need of user's approval or confirmation to use Session variables cos they are stored on server Source:
Question: Is there any limit for query string? if means what is the maximum size?.

Answer: 255 bytes (Request others to specify units for clarity)

Question: What is the maximum number of cookies that can be allowed to a web site?

Answer: 20 Source:
Question: How to manage pagination in a page?

Answer: Using pagination option in DataGrid control. We have to set the number of records for a page, then it takes care of pagination by itself. Source:
Question: When a user clicks on a ?submit? button from a form where the ?runat? attribute is set to ?server?.Put the following page events in the order in which they will fire:


Answer: Page_Int
Page_Unload Source:
Question: How to maintain ViewState of dynamically created user controls? For example, If I am creating few instances of a User control using LoadControl(...) method, then how do I make sure that the viewstate of all these controls is during postbacks?

Answer: Wrong. ViewState of dynamic controls is maintained automatically so long as you load the control on every request and add it to the control collection. Source:
Question: Explain Assemblies?,Difference between Panel and GroupBox?,Differences between ASP and ASP.NET?


Assemblies are the building blocks of .NET Framework applications; they form the fundamental unit of deployment, version control, reuse, activation scoping, and security permissions. An assembly is a collection of types and resources that are built to work together and form a logical unit of functionality. An assembly provides the common language runtime with the information it needs to be aware of type implementations. To the runtime, a type does not exist outside the contex Source:
Question: plz tell the steps for crystal report in

Answer: It is used to register our application that we are created. To share our application in the webservice we have to register our application. Source:
Question: What is the exact purpose of http handlers and interfaces?

Answer: httphandler: does the mapping of incoming URLs. This is the last part of the http request.

Ex: http://servername/project/trace.axd
( The trace.axd file is being requested by the user. The URL checks for httphandler section name in the web.config,

Then returns the particular file(trace.axd)

Note: trace.axd of a particular file is stored in the root directory of that application. Source:
Question: what is .net?

Answer: .net is language independent platform.or framework.provide assemblies ,tools to build dynamic application. Source:
Question: What do you mean by round trip?

Answer: Most Web pages require processing on the server. For example, consider a products page used to check the availability of a certain product. When a user selects his product and hits the submit button the page must check on the server to see whether the selected product is available or not. This kind of functionality is achieved by handling server control events. Whenever a user interaction requires processing on the server, the Web page is posted back to the server, processed and is returned back Source:
Question: What is smart navigation?

Answer: The cursor position is maintained when the page gets refreshed due to the server side validation and the page gets refreshed. Source:
Question: Where on the Internet would you look for Web services?

Answer: UDDI repositaries like, IBM UDDI node, UDDI Registries in Google Directory, enthusiast sites like Source:
Question: How to compare an xml schema with xml schema?

Answer: xml schema is compared through Diffgram. with the help diffram we compare opl xml schema and new schema. In Data Set uses this functionality Source:
Question: Is there any limit for query string? if means what is the maximum size?.

Answer: 255 bytes (Request others to specify units for clarity) Source:

1 2 3 4 5 6 7 8 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 Seconds