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.
- Required field Validator
- Range Validator
- Compare Validator
- Custom Validator
- Regular expression Validator
- 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.
6 Can we have a web application running without web.config file?
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.
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?
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.