Skip to main content

MVC Interview Questions for Experience Candidates #JustSharing

What is MVC (Model view controller)?
Explain MVC application life cycle?
Is MVC suitable for both Windows and web applications?
What are the benefits of using MVC?
Is MVC different from a three layered architecture?
What is the latest version of MVC?
What is the difference between each version of MVC 2, 3 , 4, 5 and 6?
What are HTML helpers in MVC?
What is the difference between “HTML.TextBox” vs “HTML.TextBoxFor”?
What is routing in MVC?
Where is the route mapping code written?
Can we map multiple URLs to the same action?
Explain attribute based routing in MVC?
What is the advantage of defining route structures in the code?
How can we navigate from one view to other view using a hyperlink?
How can we restrict MVC actions to be invoked only by GET or POST?
How can we maintain sessions in MVC?
What is the difference between tempdata, viewdata, and viewbag?
What is difference between TempData and ViewData ?
Does “TempData” preserve data in the next request also?
What is the use of Keep and Peek in “TempData”?
What are partial views in MVC?
How do you create a partial view and consume it?
How can we do validations in MVC?
Can we display all errors in one go?
How can we enable data annotation validation on the client side?
What is Razor in MVC?
Why Razor when we already have ASPX?
So which is a better fit, Razor or ASPX?
How can you do authentication and authorization in MVC?
How to implement Windows authentication for MVC?
How do you implement Forms authentication in MVC?
How to implement AJAX in MVC
What kind of events can be tracked in AJAX?
What is the difference between ActionResult and ViewResult?
What are the different types of results in MVC?
What are ActionFilters in MVC?
What are the different types of action filters?
If we have multiple filters, what’s the sequence for execution?
Can we create our own custom view engine using MVC?
How to send result back in JSON format in MVC
What is WebAPI?
But WCF SOAP also does the same thing, so how does WebAPI differ?
With WCF you can implement REST, so why WebAPI?
How can we detect that a MVC controller is called by POST or GET?
What is Bundling and Minification in MVC?
How does bundling increase performance?
How do we implement bundling in MVC?
How can you test bundling in debug mode?
Explain minification and how to implement it
How do we implement minification?
Explain Areas in MVC?
Explain the concept of View Model in MVC?
What kind of logic view model class will have?
How can we use two ( multiple) models with a single view?
Explain the need of display mode in MVC?
Explain MVC model binders?
Explain the concept of MVC Scaffolding?
What does scaffolding use internally to connect to database?
How can we do exception handling in MVC?
How can you handle multiple Submit buttons pointing to multiple actions in a single MVC view?
What is CSRF attack and how can we prevent the same in MVC?



Popular posts from this blog

ERROR: Cannot resolve the collation conflict between SQL_Latin1_General_CP1_CI_AS and Latin1_General_CI_AS_KS_WS in the equal to operation

ERROR: Cannot resolve the collation conflict between SQL_Latin1_General_CP1_CI_AS and Latin1_General_CI_AS_KS_WS in the equal to operation
dont get panic if u get the following error while in your joinings, there is a simple way to solve this.
it is because of collation settings on two columns we are doing joinings. it is because of collation settings on two columns we are doing joinings
First step is to figure out what are two colaltion that cause for conflicts. Let us assume that collation has not been set at the column level and instead at db level, then we have to execute two simple statements as below.

Statements: Select DATABASEPROPERTYYEX('DB1',N'Collation') Select DATABASEPROPERTYYEX('DB2',N'Collation')
One more thing, make a note that if you are on sharepoint you will get error as below
Latin_General_CI_AS_KS_WS. if you are on most any other database and use the dafault settings you may get this SQL_Latin_General_CP1_CI_AS.
Now we have to do some…

How To Create The Data Adapter Object Using ADO.NET by #RathrolaPremKumar

By reading this article, you will learn key points in ADO.NET, as given below. What is Data Adapter?Primary Data Adapters for the databases.Data Adapter properties.Methods used by Data Adapter.How to create Data Adapter with an example? Let’s start our demo with a Data Adapter introduction. Actually, we use Data Adapter object to establish the connection to the data source and manage the movement of date to and from the database. What is Data Adapter? A data adapter aobject serves as a bridge between a data set object and Data Source such as a database to retrieve and save the data. Data adapter contains a set of database commands and a database connection, which we use to fill a dataset object and update the Data Source. Primary data adapters for databases? .NET makes two primary data adapters available for use with the databases. Other data adapters can also be integrated with Visual Studio .NET. Primary Data Adapters are mentioned below. OleDbData Adapter, which is suitable for use wi…

'#Resolve' To export a list, you must have a Microsoft SharePoint Foundation-compatible application.

Searching this error message easily finds the root of the problem. There is a problem with the Office 64 bit version. It doesn’t work with SharePoint. These solutions generally tell you to uninstall your 64 bit office and install a 32 bit version. Happily there is a much easier solution.
Despite the error message the export actually works! Notice the yellow bar at the bottom of your browser. Simply save the .iqy file normally and open it with Excel. It’s that simple. The error message is certainly a nuisance but does not actually stop the export.
Thanks for ready my blog :)