ASP.NET MVC

Prevent Cross-Site Request Forgery (CSRF) Attack in ASP.NET MVC

To avoid cross site scripting attack where a request to submitted to the form that is not originally the form […]

Updated on     Kisan Patel

Identity authorization for a particular view/page in ASP.NET MVC

To perform Identity Authorization we need to add identity authentication in our project. Now you can add authentication for whole […]

Updated on     Kisan Patel

ASP.NET MVC – Make Action Method as Anonymous Methods in Secure Controller

To make an action method as a anonymous methods in secure controller, we can make that method as Anonymous method […]

Updated on     Kisan Patel

ASP.NET MVC – Make all Action Methods Secure in Controller

To make all action methods public in secure controller, we just add [Authorize] before the controller starts. [Authorize] public class […]

Updated on     Kisan Patel

Return Plain text or HTML from controller action method in ASP.NET MVC C#

To output any content (plain text or HTML text) from controller, we use ContentResult() like below. public ContentResult OutputContent() { […]

Updated on     Kisan Patel

ASP.NET MVC – Pass data from one action method to another action method

When, we need to pass some data from one action method to another method while redirecting the user to another […]

Updated on     Kisan Patel

Bind Dropdown using Primarykey and Foreignkey relationship of Model In MVC C#

In previous Article i have give how to create Primarykey and Foreignkey relationship in MVC C# Your Link is HERE […]

Updated on     Kisan Patel

ASP.NET MVC – Rename Action Method

To rename the Action method of the controller, we use ActionName attribute before the action method of the controller. For […]

Updated on     Kisan Patel

ASP.NET MVC – Access form data into the controller using Request

This tutorial will explain you how to access form data into controller using request in asp.net mvc with example. We […]

Updated on     Kisan Patel

Specify primary key and foreign keys relationship to the Models in ASP.NET MVC

To demonstrate Primarykey and foreignkey relationship we need two models with primarykey defined and foreignkey defined in them. we will […]

Updated on     Kisan Patel