- 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: 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: 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 the difference between ExecuteScalar and ExecuteNonQuery?

Answer: ExecuteScalar returns output value where as ExecuteNonQuery does not return any value but the number of rows affected by the query. ExecuteScalar used for fetching a single value and ExecuteNonQuery used to execute Insert and Update statements. 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: What is the difference between an EXE and a DLL?

Answer: An EXE can run independently, whereas DLL will run within an EXE. DLL is an in-process file and EXE is an out-process file Source:
Question: Where would you use an iHTTPModule, and what are the limitations of anyapproach you might take in implementing one?

Answer: One of ASP.NET?s most useful features is the extensibility of the HTTP pipeline, the path that data takes between client and server. You can use them to extend your ASP.NET applications by adding pre- and post-processing to each HTTP request coming into your application. For example, if you wanted custom authentication facilities for your application, the best technique would be to intercept the request when it comes in and process the request in a custom HTTP module. 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: can i assign datagrid.datasource = datareader
will it work?
will it fill my datagrid with the values

Answer: Dim dTable AS new DataTable Dim qry AS String = "SELECT ItemNo, ItemName, ItemDescription FROM tblItem" Dim sqlCommand AS new SqlCommand(qry, sqlConn) sqlConn.Open ResultGrid.DataSource = sqlCommand.ExecuteReader() ResultGrid.DataBind() sqlConn.Close 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 appSettings Section in the web.config file?

Answer: The appSettings block in web config file sets the user-defined values for the whole application.

For example, in the following code snippet, the specified ConnectionString section is used throughout the project for database connection:

<add key="ConnectionString" value="server=local; pwd=password; database=default" />
<a Source:
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: 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: 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: one aplication have 50 pages out of 50 , 5 pages shouldn't ask user name and password other 45 should ask user name and password?how will you write the code in web.config?

Answer: In application if there were 50 pages and out of 50, 5 pages asked user id and password there then 45 pages were show and take there company details, new user detail data, show the visitor about their fruitfull results, FAQ is also available their. And many more like that. Source:
Question: Where can we save cashed data and session data

Answer: Session and cache data are stored on Web Server. If a State Server or Sql Server is used to Store Session Data then Session data is stored on these server instead of Web Server. 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 a view state?Can Dataset be stored in view state?Does datagrid has a view state?

Answer: ViewState is a mechanism to maintain state in pages. HTTP is a stateless protocol. So we can maintain state either on server or client using sessions, cookies, hidden variables, URL, etc.

ViewState is a hidden field maintained by ASP.Net to contain page data.

Yes, Dataset can also be stored in ViewState but this is not recommended due to overhead of managing a bulk data in ViewState.

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.03125 Seconds