MVC

Access List value from ViewData in MVC

Let’s create a mvc application and name it mvcDemo. Let’s create a model and name it StudentModel. public class StudentModel { public int StudentId { get; set; } public string Name { get; set; } public bool IsRequired { get;… Continue Reading →

Can we make action methods as protected in mvc

In this article we learn is that possible to make method as protected or not.

Can we make controller as protected

In this article we learn that is it possible to make controller as protected. No, we cannot make a controller as protected. Let’s try to make controller as protected. When we make controller as private,protected,protected internal. It is giving an… Continue Reading →

What a is Partial View is and Difference Between Html.Partial and Html.RenderPartial in MVC

In this article we learn what a Partial View is and how to call a Partial View and in which scenario which method is good for the call.

What Cross Site Scripting Attack Is In MVC

Cross-Site Scripting (XSS) attacks are a type of injection, in which malicious scripts are injected into otherwise benign and trusted web sites.

T4 Template Using XML

In this article we learn what a Text Template Transformation Toolkit (T4) template is using XML.

What a T4 Template is in MVC

In this article we learn what a Text Template Transformation Toolkit (T4) template is and how to customize it.

How to Call Layout View at Run Time in MVC

This article explains what layout is and how to use it.