MVC ASP.Net Interview Questions And Answers

In this article,  explaining best MVC ASP.Net Interview Questions and Answers as following:

1. Which is the best approach to assign a session in MVC?

A) System.Web.HttpContext.Current.Session["LoginID"] =7;
B) Current.Session["LoginID"] =7;
C) Session["LoginID"] =7;
D) None

2. RedirectToActionPermanent() Method for which Status code represents?

A) 304
B) 302
C) 301
D) 300
E) None

3. RedirectToAction() Method for which Status code represents?

A) 304
B) 302
C) 301
D) 300
E) None


How to Delete Contraints in SQL Server


Suppose we are working with Entity Framework or some very complex database and moreover we don’t have matured database then very tedious work to carry out changes with our back end database in MS SQL Server, so I am proposing this great utility to handle out this problem.


AngularJS JavaScript MVW Framework

Angular History:

AngularJS is quite new language and introduced first time in 2012, Google employee starts to develop it in 2009. Later Google properly take over, funded and full time development on it. Angular JS is easy to learn. It extends HTML with new modern rich features.

Angular JS

Master And Content Pages in ASP.Net

ASP.Net Master Page’s application allows us to create a consistent layout of the UI. We can create a master page in application; moreover can create multiple content pages where ever we can display content.
Master page has a extension with .Master


HTTP Error 403.14 - Forbidden in IIS

I am explaining in detail how to resolve issue HTTP Error 403.14 – Forbidden in IIS. Earlier, I have explained in detail about Login failed for user IIS Apppool \Default Apppool, HTTP Error 503. The service is unavailable.

Error Description:

HTTP Error 403.14 - Forbidden
The Web server is configured to not list the contents of this directory.

Step 1: I was working on prominent website, and then I popped up a error in my browser HTTP Error 403.14 – Forbidden. The Web server is configured to not list the contents of this directory.


Tab Control C# Windows Application

I am demonstrating in this example, how can we use tab control in C# windows application. My recent posts were on Export Gridview to Excel & Transpose Datatable C# now explaining about tab control in c# windows application.

Step 1: Expand Containers tab of Toolbox, then drag Tab Control into your design window.

tab control


Transpose Datatable C#

Dataset and datatable are the lifelines of (c#). Without data table & dataset we are short, inflexible, expensive, unmanageable and less availability. Recently I dealt greatly with transposed datatable in C#. Data was throwing me in vertical and I need to manipulate data back into horizontally. This is very time consuming to manage the data properly according to our situation, so it needs me to manage transpose datatable in c# according to situation; moreover I motivated to share this one in detail. I have provided steps how can we generate transpose datatable in c# as below:

Using Namesapce:

using System.Data;

Step 1: In first step, I have added some required .net controls to view transpose datatable in Gridview.

Transponsed datatable Html View