Top 10 ASP.NET MVC Interview Questions and Answers

Top 10 ASP.NET MVC Interview Questions and Answers

Today, We want to share with you Top 10 ASP.NET MVC Interview Questions and Answers.
In this post we will show you Top 10 ASP.NET/MVC Interview Questions with Answers, hear for ASP.NET Interview Questions and Answers we will give you demo and example for implement.
In this post, we will learn about ASP.NET MVC Interview Questions with Answers with an example.

What are the different validators in ASP.NET?

There are following different Types of validators.

  • Required field Validator
  • Range Validator
  • Compare Validator
  • Custom Validator
  • Regular expression Validator
  • Summary Validator

What is ViewState?

ViewState is used to retain the state of server-side (not a client side) objects between page post backs.

Also Read :  PHP MySQL Delete record with confirmation popup using jquery ajax

How long the items in ViewState exists?

They exist for the life of the Simple current page.

What are the different types of caching?

ASP.NET has 3 kinds of caching Types :

  • Output Caching
  • Fragment Caching
  • Data Caching

List the events in page life cycle.

1) Page_PreInit phase
2) Page_Init phase
3) Page_InitComplete phase
4) Page_PreLoad phase
5) Page_Load phase
6) Page_LoadComplete phase
7) Page_PreRender phase
8)Render phase

Can we have a web application running without web.Config file?

Yes

Which protocol is used to call a Web service?

HTTP Protocol is used to call a Web service.

List all templates of the Repeater control.

  • ItemTemplate
  • AlternatingltemTemplate
  • SeparatorTemplate
  • HeaderTemplate
  • FooterTemplate

what is the C# support two types of delegate.

1- Single Cast Delegates
2- Multi Cast Delegates

Also Read :  Autocomplete Textbox using jQuery, PHP and MySQLi

List the major built-in objects in ASP.NET?

-Asp.net supports Application
-Asp.net supports Request
-Asp.net supports Response
-Asp.net supports Server
-Asp.net supports Session
-Asp.net supports Context
-Asp.net supports Trace

Which namespaces are necessary to create a localized application?

First is : System.Globalization
Second is : System.Resources

boxing and unboxing-Example.

written in C#

int j = 15;
object myObject = j; 	// This is boxing types
j = (int)myObject;	// This is unboxing types

What is a delegate in .NET?

A delegate can be consider as a reference type variable which can holds the reference to a method.

This reference can then be changed at runtime.

Delegates are mostly used for implementation of events and the call-back methods.

Also Read :  Top 10 Best Free PHP IDE for Website Developers

These are implicitly derived from the inbuilt System.Delegate class.

Delegates are used to pass methods as arguments(parameter) to some another methods.

what is the Syntax for delegate declaration?

delegate <return type> <delegate-name> <parameter list>

Interview

We hope you get an idea about Top 10 ASP.NET MVC Interview Questions and Answers
We would like to have feedback on my Information blog .
Your valuable any feedback, Good question, Inspirational Quotes, or Motivational comments about this article are always welcome.
If you liked this post, Please don’t forget to share this as Well as Like FaceBook Page.

We hope This Post can help you…….Good Luck!.

Leave a Reply

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