Online Tutorials & Training Materials |
Register Login

ASP.NET Interview Questions

ASP.NET Interview FAQ's

1. What is ASP.NET?

A: ASP.NET is a framework created by Microsoft on which new generation websites are developed using HTML, MVC, JavaScript, etc. ASP.NET was developed to address its predecessor, the Microsoft Active Server Pages or ASP.

2. What advantages does ASP.NET have?

A: ASP.NET provides developers several advantages:

Separation of HTML and code: The layout of the page and the code for the page can be handled separately, allowing designers and programmers to collaborate with greater ease.

Supports compiled languages: Support for compiled languages ensure that programs run better and faster.
The .NET Framework: Microsoft provides the .NET framework containing class libraries that can be accessed by the program, making the coding process much simpler.

Graphical development: The development environment for ASP.NET is a rich GUI form, allowing programmers to work easily with features like drag and drop, property settings, etc. all on a visible interface apart from the codes.

State management: Session and application State Management solutions are given by the ASP.NET system. The State information can be stored in memory or in a database, can be shared and recovered if the server fails.

File updating in running server: ASP.NET allows parts of the application to be updated even with the server running and clients connected.

XML configuration files: Configuration settings of ASP.NET are stored as XML files which are easy to work with.

3. What is Validation in ASP.NET?

A: Validation is a system of checking the user inputs before they are layered into the application to ensure wrong data compromising the working of the application is not sent.

4. What is client side validation?

A: Validation performed on the client browser using JavaScript is called client side validation.

5. What is server side validation?

A: Validation done at the server is called server side validation. It is a more secure check than user side where errors are caught even if the user has bypassed client side validation.

6. What is meant by View State?

A: View State is a Page Level State Management procedure that preserves the Value of a Page and Control properties during round trips, that is sending request to server and return of page from the server.

7. What is meant by Caching in ASP.NET?

A: Caching is the process where the output that a page generates is stored in memory, and the saved output or cache allows the page being loaded faster the next time with only the required modifications being applied.

8. What is meant by MVC in ASP.NET?

A: MVC or Model Vie Controller is a pattern of separating a complete application into three components: Model, View, and Controller. The ASP.NET MVC Framework is a very testable and lightweight presentation framework integrated with ASP.NET features providing complete control over JavaScript, CSS, and HTML, and is better used in applications of a large scale with multiple teams working together.

9. What various Session State Management choices does ASP.NET provide?

A: Session states may be managed in ASP.NET in two ways:

1.In Process: The Session data is stored in the web server memory.
2.Out of Process: The Session data is stored in an external server which may be an SQL or State Server.

10. What do Cookies do in ASP.NET?

A: Cookies are small files sent from the server which are saved in the client’s computer by the browser. They are a State Management technique to store user specific information in the user’s system, enhancing webpage performance.

11. How are web config and machine config different?

A: Web config file is specific to the web application, while machine config is specific to the machine or the server. Thus, there may be many web config files for an application, but only a single machine config file for each server.

12. What is meant by Role Based Security?

A: Role Based Security is a system of allowing access to specific parts of the application to specific user groups only. Thus an Administrator has a greater access than a User, who in turn has a greater access than a Guest.

13. What is meant by Cross Page Posting?

A: Data is normally posted to the same page when the submit button is clicked in a webpage. Cross Page Posting is the method where the data is submitted to a different page when submit button is clicked in a webpage.

14. What are boxing and unboxing in ASP.NET?

A: Boxing is the assignment of a value type variable to a reference type variable, while unboxing is the exact opposite, assignment of a reference type variable to a value type variable.

15. What is the difference between strong typing and weak typing?

A: Strong Typing of the code means the variable data types are checked during compilation hence errors are avoided during runtime. Weak Typing of code checks the data types during runtime itself and hence can cause issues during runtime.

16. What cookies are used in ASP.NET?

A: Two types of cookies are used:

1.Session Cookie: Stays in the user’s system for a single session till the user logs out.
2.Persistent Cookie: Has a specific lifespan and exists in the user’s system for that time.

17. What is the role of AJAX in ASP.NET?

A: AJAX or Asynchronous JavaScript and XML allows asynchronous updating of the webpage so that part of the page may be updated without reloading the entire page every time.

18. What are meant by Web Services in ASP.NET?

A: Web Services are software programs that use common protocols to exchange information with other softwares using XML.

19. What components does ADO.NET have?

A: ADO.NET components include Dataset, Data Adaptor, Data Reader, Connection, and Command.

20. What is the File Extension of Web Service?

A: The File Extension for Web Service is .asmx.

21. What protocol is used to call a Web Service?

A: The HTTP or Hypertext Transfer Protocol is used to call Web service.

22. What are the types of caching in ASP.NET?

A: Three kinds of caching are available:

1.Output Caching
2.Fragment Caching
3.Data Caching

23. How is an Event Handler added?

A: The Attributes property of Server Side Control is used to handle an event.

24. What is the base class for inheriting all Web Forms?

A: The Page class is the base class from which all Web Forms are inherited.

25. Can Web Services support a data reader?

A: No, Web Services support a dataset, but not a data reader.

1020 results
  • Ajax Interview Questions and Answers for Experienced
    What is Ajax & What does Ajax stand for? n nAJAX stands for Asynchronous JavaScript and XML. It is used to create better web applications using XHTML for developing the main content and CSS for...
  • Posted in: Articles » » | By: Jyoti Pandey | Date: 12 Feb 2019 8:53 am | Comments (0)
  • Top 25 C# Interview Questions and Answers
    What is C# (Sharp)? n nC# is an object-oriented programming language that is both general-purpose and modern in its features. Developed by Microsoft, it was designed to be compatible with Common...
  • Posted in: Articles » » | By: vaibhav gupta | Date: 20 Nov 2018 1:20 pm | Comments (0)
  • Smartforms Interview Questions and Answers
    SAP ABAP Smartforms Interview FAQ n nQ) Define Smart form? n nForm Printing in the Internet Age n nSmart Forms was initially presented in SAP Basis Release 4.6C primarily as a tool for the creation...
  • Posted in: Interview Questions » ABAP » | By: rekha | Date: 29 Jun 2018 1:19 pm | Comments (6)
    1.  Priniples of oops?2.  What is difference between procedural & OO Programming?3.  What is class?4.  What is object?5.  Can we instantiate a class within implementation...
  • Posted in: Interview Questions » ABAP » | By: vishal singh | Date: 18 May 2018 11:23 am | Comments (1)
  • BAPI Interview Questions and Answers
    General BAPI Interview Questions n n1) Define BAPI? n nBAPI is a standardized programming interface (method) which enable external applications to gain access to business processes and data in...
  • Posted in: SAP Blogs » » | By: rekha | Date: 08 Jan 2019 6:43 am | Comments (1)
  • Reorganizations Interview Question and Answers
    nFAQ: Reorganizations 1. What is reorganization?The term reorganization refers to the reconstruction of objects in the database. A distinction is made between offline and online...
  • Posted in: Interview Questions » Oracle » | By: rekha | Date: 19 May 2018 4:27 am | Comments (0)
  • ALV Layout Interview Questions
    [1] Question: What do the terms "display variant" and "layout" mean? n nAnswer: Both the term "display variant" and the term "layout" refer to the same thing...
  • Posted in: Interview Questions » ABAP » | By: rekha | Date: 18 May 2018 12:00 pm | Comments (0)
  • JMon Interview Questions and Answers
    FAQ: JMon1.Q: The JVM cores on Windows 2000 with the following error in the file hs_err_pidxxxx.log: An unexpected exception has been detected in native code outside the VM. Unexpected Signal:...
  • Posted in: Interview Questions » Java » | By: rekha | Date: 20 May 2018 1:51 am | Comments (1)
  • SAP EHS Interview Questions
    Hello SAP Experts, n nI Need SAP EHS interview questions and answers that are asked usually in any interivew. Please try to share them with me as soon as possible so that I can read and follow them...
  • Posted in: Forum » EHS ( Environment, Health, and Safety Management ) » | By: | Date: 18 May 2018 11:53 pm | Comments (1)
  • Order Management Interview Questions
    Hello Experts, n nI have recently faced an interview of a Company and the interviewer asked me these question which i have mentioned below: n nFirst question : If a xyz sales person(may be he meant...
  • Posted in: Forum » SD (Sales and Distribution) » | By: Rohit Mahajan | Date: 04 Dec 2018 7:21 am | Comments (4)
  • Authorizations Interview Question and Answers
    FAQ: General Questions About Authorizations[1] Question: Can wildcards be used in authorizations?[2] Question: What does the PFCG_TIME_DEPENDENCY clean up?[3] Question: What happens to change...
  • Posted in: Interview Questions » BASIS » | By: rekha | Date: 18 May 2018 12:09 pm | Comments (0)
  • MODULARIZATION Interview Questions and Answers
    MODULARIZATION FAQs1.Does every ABAP/4 have a modular structure?Yes.2.What is Modularization and its benefits?If the program contains the same or similar blocks of statements or it is required to...
  • Posted in: Interview Questions » ABAP » | By: Merityunjay Kumar Shukla | Date: 19 May 2018 11:07 am | Comments (1)
  • SDBI_CLUSTER_CHECK Interview Questions and Answers
    Q-1.Will I be able to run the SDBI_CLUSTER_CHECK without option "Find duplicates"? What is the impact?Ans) It is indeed possible to run the report without causing any impacts. The option...
  • Posted in: Interview Questions » NetWeaver » | By: vaibhav gupta | Date: 18 May 2018 3:51 pm | Comments (0)
  • Informatica Interview Questions and Answer
    Informatica FAQ's n n1. What is Enterprise Data Warehousing? n nA: Enterprise Data Warehousing is the creation of organization data at a single access point. Data with global view can be given to...
  • Posted in: SAP Blogs » » | By: Nitesh Singh | Date: 30 May 2018 11:08 am | Comments (0)
  • Hive Interview Questions and Answers
    What is Hive? n nHive is a tool to perform ETL (extract, transform and load) and Data warehousing functions. It was developed as a sub-project of Hadoop Distributed File System (HDFS). Hive makes...
  • Posted in: Articles » » | By: vaibhav gupta | Date: 14 Feb 2019 6:43 am | Comments (0)
  • TestNG Interview Questions & Answers
    What is TestNG? n nTestNG is a tool to perform tasks like reporting, assertions, parallel test execution etc. integrating the framework with selenium or other automation tools. The NG in TestNG...
  • Posted in: Articles » » | By: Jyoti Pandey | Date: 15 Jan 2019 10:06 am | Comments (0)
  • SSRS Interview Questions and Answers
    What is SSRS? n nSQL Server Reporting Service is a server-based software system. It generates reports that Microsoft develops. You can prepare and deliver various printed reports that are...
  • Posted in: Articles » » | By: Shalesh Singh | Date: 11 Feb 2019 8:34 am | Comments (0)
  • VMware Interview Questions and Answers
    What is VMware? n nVMware is a software that enables you to do virtualization and cloud computing in your host computer. You can run a virtual computer from your own computer. The basis of...
  • Posted in: Articles » » | By: vaibhav gupta | Date: 24 Dec 2018 7:03 am | Comments (0)
  • Data Modelling Interview Questions
    What is data modelling? n nThe process of documenting the design of a complex software system through diagrams, text, and symbols that represent the data flow is known as data modelling. This...
  • Posted in: Articles » » | By: Romil Tripathi | Date: 15 Feb 2019 1:45 pm | Comments (0)
  • Microservices Interview Questions and Answers
    What are Microservices? n nMicroservices or Microservice Architecture is a style of architecture that organizes an application in the form of a collection of minor autonomous services that are...
  • Posted in: Articles » » | By: Sushma | Date: 08 Jan 2019 6:31 am | Comments (0)