interview question and answers for experienced: ASP.NET Interview Questions and Answers


Answer ( 1 )

    2023-04-29T14:52:53+00:00 interview question and answers for experienced: ASP.NET Interview Questions and Answers


    ASP.NET is a server-side web application framework developed by Microsoft. It is used to create dynamic web pages, web sites and web applications.

    ASP.NET Interview Questions and Answers:

    ASP.NET Interview Questions and Answers:

    ASP.NET is a server-side scripting language used to create dynamic web pages. It is a successor of ASP (Active Server Pages), which was originally developed by Microsoft in 1998. ASP.NET was introduced with version 1.0 of the .NET Framework and has been continuously improved since then, becoming an integral part of it since version 2.0.

    The main characteristics that distinguish ASP from other web development tools are its independence from any specific database management system (DBMS) or operating system; its use of code written in languages other than HTML; its ability to run on any platform where there is a Microsoft Internet Information Services (IIS) server; its support for many different programming languages; and its separation between presentation logic (HTML) and application logic (.aspx files).

    What is ASP.NET?

    ASP.NET is a server-side scripting framework that can be used to build dynamic web pages. It was developed by Microsoft in the year 2000.

    ASP stands for Active Server Pages, which was first introduced with Internet Information Services (IIS) 5.0 and utilized VBScript as its programming language. ASP.NET includes many new features such as integrated security and error handling mechanisms, better support for state management on web servers, etc., but it still retains backward compatibility with existing code written in classic ASP environments

    Why should one use ASP.NET over other technologies?

    ASP.NET is a web application framework developed by Microsoft. It can be used to create dynamic web sites and applications, which run on the .NET Framework. It’s an advanced technology that gives you the ability to build powerful, flexible and highly scalable websites using C# or VB.NET programming languages.

    You can develop ASP.NET websites using Visual Studio 2017 IDE (Integrated Development Environment). AspNetCore 1.1 is open source cross-platform framework for creating modern cloud based Web Applications with support for multiple platforms like Linux/Windows/MacOS etc., Its main goal is to make it easy for developers to build high-quality cloud based applications that scale well across different devices & platforms while maintaining performance & security standards required by today’s demanding business needs

    What are the different versions of ASP.NET and where are they used?

    • ASP.NET 4.5 is the latest version of ASP.NET and is used to develop web applications in .NET Framework 4 or higher versions.
    • ASP.NET 4.0 is an incremental upgrade from 3.5 and hence can be used with earlier versions of IIS as well.* ASP.NET 3.5 was released with Visual Studio 2008 and uses IIS 7.* The previous versions of ASP (1.1, 2), have been superseded by newer releases but their use is still widespread due to backward compatibility reasons.*

    What are the various types of controls available in ASP.NET?

    There are many types of controls available in ASP.NET. The most common ones are:

    • ASP.NET Web Forms: This is the original web development platform for .NET Framework, which allows you to create dynamic websites with rich user interfaces (UI). It uses HTML markup and server-side script code to generate dynamic pages on the fly when requested by users. This enables you to use a wide range of features such as data binding, validation, master pages and much more that help you develop complex web apps quickly without having any knowledge about HTML or CSS programming languages.* ASP.NET MVC: Model-View-Controller (MVC) is an architectural pattern used for developing scalable web applications using clean separation between logic written into controllers (code behind files), presentation layer represented by views (.cshtml files) which are rendered using Razor syntax(partially precompiled C# code blocks). Asynchronous communication between controller actions happens through ActionResult objects which contain information about how results should be displayed once returned from database operations performed inside them; this makes it possible for us later on reuse those same action results across multiple methods within same controller class so long as we pass same type arguments when calling these methods back.* ASP .NET Core : It’s an open source platform released by Microsoft back in 2016 after three years of development time involving some talented developers around world including myself 🙂

    Explain how an ASP.Net application runs without any interaction from the user?

    Asp.NET is a server-side technology, so it runs on a web server. When a user visits the site, ASP.NET application runs in the background without any interaction from the user.

    What is the purpose of Session Variables in an ASP.Net Application?

    Session variables are used to store information that is needed by the user during a session. They are stored in a session object and can be accessed from anywhere within that session.

    Session variables are used to store information like shopping cart, login information, etc.

    What is ViewState in an ASP.Net application and how can it be controlled easily?

    ViewState is a hidden field that holds the state of the page. ASP.NET uses ViewState to store information about controls on a page, as well as to pass data from one page to another. The ViewStateMode property specifies how your application will use view state and whether or not you want it enabled for any controls on your pages. The default value for this property is AutoDetect, which means that ASP.NET automatically determines when to enable or disable view state based on whether or not it is needed by any control in your web form or user control classes (for example: if there are no server side validation checks).

    If you want more control over when your application uses view state, then set this property explicitly using one of these values: On: Always uses view state regardless of whether it’s needed; Off: Never uses view state regardless of whether it’s needed; InProc: Uses only local memory within each user session without requiring network accesses; StateServer: Uses remote storage at an IIS site when possible but falls back onto local storage if necessary (this may require additional configuration).

    Explain how you can use ViewState to maintain state information from one page to another without writing code again and again.

    ViewState is a hidden field that contains the state of an ASP.NET control on a web page. It’s used to maintain the state of controls across postbacks, so that you don’t lose any information from one page to another.

    For example, if you have created a dropdown list with some options in it and then submitted that form without selecting any option from this dropdown list, when user clicks on submit button again it will again show default values available in select tag instead of showing last selected value which was present in ViewState before submitting first time.


    The takeaway section is where you can sum up the most important points of your interview. This section should not be used to repeat what was already said in the introduction, but rather to highlight key takeaways that you want your interviewer to remember.

    For example: “In conclusion, I believe my experience working with [insert project name] will make me an excellent candidate for this position.”


    We hope that you have enjoyed reading this article and learned something new about ASP.NET. If you want to become an expert in this technology, then practice more by solving some of the sample questions given in our site. You can also refer other books on this subject as well but make sure that they are written by experienced authors who have years of experience working with different types of projects like us!

Leave an answer