Introduction

In this post, I will try to list and answer some of the most-asked asp.net interview questions. Before going for an interview you can have a look at this question so it will make your way to job easy.

Asp.net interview questions

1 What are the different validators in ASP.NET?

Asp.net has 6 types of validator which are listed below.

  1. Required field Validator
  2. Range Validator
  3. Compare Validator
  4. Custom Validator
  5. Regular expression Validator
  6. Summary Validator
2 What is ViewState?

ViewState is used to store or hold the state of server-side objects across the various page post backs.

3 How long the items in ViewState exists?

The value inside ViewState exists for the life of the Simple current page.

4 What are the different types of caching?
  • Output Caching
  • Fragment Caching
  • Data Caching
5 List the 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
6 Can we have a web application running without web.config file?

Yes

7 Which protocol is used to call a Web service ?

HTTP Protocol is used to call a Web service.

8 What is delegate ?

Delegate can be considered as a reference type variable which can hold the reference to a method.

9 List all templates of the Repeater control.
  • ItemTemplate
  • AlternatingltemTemplate
  • SeparatorTemplate
  • HeaderTemplate
  • FooterTemplate
10 How can we identify that the Page is PostBack?

By checking value of IsPostBack property, we can identify whether it is postback or not.

11 Which namespaces are necessary to create a localized application?
  • System.Globalization
  • System.Resources
12 Which is the parent class of the Web server control?

The System.Web.UI.Control class is the parent class for all Web server controls.

13 Define a multilingual Web site.

A multilingual Web site has a content in a number of languages. It contains several copies of its content and other resources, such as date and time, in different languages. This is achieved by Resource files(.resx).

14 How can you display all validation messages in one control?

The ValidationSummary control displays all validation messages in one control. All messages for invalid values are listed in this control.

prepare all this asp.net interview questions and it will help you in the interview.

Leave a Reply

Your email address will not be published. Required fields are marked *

Name *
Email *
Website