Asp.Net Interview Questions

Here, We are listed top 15+ most asked ASP.NET Interview Question with Answers for freshers and experienced candidates.

ASP.NET is one of the most popular Web frameworks and Programming Language. ASP.NET uses ".Net languages" like - C# and VB.NET, which is compiled to Microsoft intermediate language.

ASP.NET Interview Questions
ASP.NET Interview Questions & Answers

Q1- What are new features in ASP.NET 3.5?

There are following new features added in ASP.NET 3.5, It mentained Below:

  • Asp.Net Ajax support
  • The ListView Control
  • The DataPager Control
  • Support for WCF Services
  • WCF support for RSS, JSON, and Partial Trust
  • Support for Nested Master Pages at Design Time
  • Merge Tool in Asp.Net 3.5
  • Improved Support for JavaScript Debugging
  • Support for Microsoft Office Applications

Q2- What is the Asp.Net Life Cycle?

The Asp.Net Life Cycle shows how Asp.Netprocesses pages to produce dynamic output. The application and individual pages are instantiated, how Asp.Net compiles the pages dynamically.

  • ASP.NET Application Life Cycle on IIS 7.0
  • ASP.NET Page Life Cycle

Q3- What are different stages of an ASP.NET Web Page?

General, There are 8th Stages used in ASP.NET Web Page:

  1. Page Request
  2. Start - The response and request properties of the page are configured.
  3. Page Initialization
  4. Load - If the current request is an old one, the properties of the controls on the page are loaded with data from the view state and control state.
  5. Validation - It controls used on the page invoke the validate method.
  6. Postback Event Handling - If the request made is an old one, then any event handler are invoked.
  7. Rendering - While rendering the page, it invokes the render method for each control on the page and writes the output of the rendering stage to the outputstream object of the page's response property.
  8. Unload - The response and request properties of the page are unloaded and any cleanup operation, if required, is performed.

Q4- What are the different validators in ASP.NET?

Basically, There are two types of validation in ASP.NET.

  • Client-Side Validation
  • Server-Side Validation

Client-Side Validation

When validation is done on the client browser, it called Client-Side Validation.

Server-Side Validation

The Server-Side Validation is a secure form of validation. When validation accurs on the server, it called Server-Side Validation. There are some validators are used in Server-Side Validation.

  • Required Field Validator
  • Custom Validator
  • Compare Validator
  • Range Validator
  • Regulat Expression Validator
  • Summary Validator

Q5- What is the difference between the ASP and ASP.NET?

ASP - ASP stands for Active Server Pages. And ASP uses VBScript, when the ASP page is executed, it is interpreted.
ASP.NET - ASP.Net uses .Net languages like C# and VB.NET, which is compiled to Microsoft intermediate language. ASP.NET is a specification by Microsoft which is used to create web applications and web services.

Q6- What are the different versions of .NET Framework?

The following versions are used in .NET Framework:

  • .NET Framework 1.0
  • .NET Framework 1.1
  • .NET Framework 2.0
  • .NET Framework 3.0
  • .NET Framework 3.5

Q7- What is View State?

View State is the function to preserve the Value of the Page & Controls between round trips. View State is a Page-Level State Management technique.

Q8- What are Features of View State?

  • The ViewState is used to save the view state of each control used in a page. If the ViewState property is not used, then the value written in the controls are not retained when the page is reloaded.
  • Creates a custom View State Provider that lets you store View State Information in a SQL Server Database or in another data store.
  • ViewState is maintained in a web page by default.
  • Stores the value of Pages and Control Properties defined in the page.

Q9- Why we are used Application State?

Application State is used to store data corresponding to all variables of an ASP.NET web application. The data in application state is stored once and read several times. Application State uses the HTTPAPPLICATIONSTATE class to store and share the data throughout the application.

Q10- What are the different types of caching?

  • Output Caching
  • Frafment Caching
  • Data Caching

Q11- What are the list of events in page life cycle?

  1. Page_PreInit
  2. Page_Init
  3. Page_initComplete
  4. Page_PreLoad
  5. Page_Load
  6. Page_loadComplete
  7. Page_PreRender
  8. Render

Q12- What is the list of properties containing HttpCookies Class?

Cookies are a State Management Technique that can store the values of control after a post-back. There are following properties containing HttpCookies Class, the list mentained Below:

  • Domain
  • Expires
  • HasKeys
  • Name
  • Path
  • Secured
  • Value

Q13- What are HTTP Handlers?

HTTP Handlers handle user requests for web application resources. Web Application resorces are the backbone of the reques-response model of Web application. For each request type, there are a specific event handler to handle the request and send back the corresponding response object.

Q14- What is IIS?

IIS means Internet Information Services. IIS is created by Microsoft to provide Internet-based services to ASP.NET Web applications.

Q15- What are ASP.NET 3.5 Coding Models?

ASP.NET 3.5 Coding techniques refer to the methodologies used for writing code in a Web application. ASP.NET 3.5 provides two types of coding techniques:

  • Single_File Page Model
  • Code-Behind Page Model

Advertise With Us

We offer sponsored posts and guest posts with do-follow links, back-links, and other advertising services, To advertise email us at ""

© 2021 GDATAMART.COM (All Rights Reserved)