TOP CATEGORIES

×

List of top 50 most asked ASP.NET interview questions

top 50 asp net interview questions answers

ASP.NET Programming Language

ASP.NET is one of the most popular Web frameworks & Programming Language that uses ".Net languages" such as C# and VB.NET, which is compiled into Microsoft intermediate language.

List of ASP.NET Interview Questions

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

There are the following new features added in ASP.NET 3.5, which are mentioned 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.Net processes pages to produce dynamic output. The application & individual pages are instantiated, and Asp.Net compiles the pages dynamically.

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

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

General, 8th stages are used in the 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 is 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 output stream 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?

There are two types of validation in ASP.NET.

  1. Client-Side Validation
  2. Server-Side Validation

Client-Side Validation

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

Server-Side Validation

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

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

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

ASP stands for Active Server Pages. It uses VBScript, when the ASP page is executed, it is interpreted. "ASP.Net" uses ".Net" languages like C# and VB.NET, which are compiled into 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 the .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. It is a Page-Level State Management technique.

Q8. What are the Features of View State?

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

Q9. Why we are using Application State?

Application State is used to store data corresponding to all variables of an ASP.NET web application. The data in the 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
  • Fragment Caching
  • Data Caching

top 20 most ask aspnet interview questions

Q11. What is the list of events in the page life cycle?

  • Page_PreInit
  • Page_Init
  • Page_initComplete
  • Page_PreLoad
  • Page_Load
  • Page_loadComplete
  • Page_PreRender
  • 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 the following properties containing HttpCookies Class, the list mentioned below:

  • Domain
  • Expires
  • Has Keys
  • Name
  • Path
  • Secured
  • Value

Q13. What are HTTP Handlers?

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

Q14. What is IIS?

IIS means Internet Information Services, It 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

Email: advertise@gdatamart.com

Donate: To Support US

© 2024 GDATAMART.COM (All Rights Reserved)