| by Achyut Kendre | No comments

What is Web Application? Understand ASP.NET Basics.

In this article we will learn about what is web application? What is ASP.NET ? and few basic concepts of ASP.NET. Let us start – What is web Application? A web application is application software that is installed on server computer and runs on a web server, unlike computer-based software programs that are run locally […]

Read More
| by Achyut Kendre | 169 comments

What is Attribute Routing? How to do it in ASP.NET MVC 5?

Example Links: https://drive.google.com/file/d/1XFZdb_MtHAsoqe4mQG3_gx5q-K1SnUSJ/view?usp=sharing In this article we will learn attribute routing and how to implement attribute routing in ASP.NET MVC 5. ASP.NET MVC 1,2,3,4 support classical URL Routing in ASP.NET MVC 5 we have URL Routing as well as it supports Attribute Routing. Attribute routing is new feature of ASP.NET MVC 5 which enables you […]

Read More
| by Achyut Kendre | No comments

Custom Authorization Filter in ASP.NET MVC 5

Example Link: https://drive.google.com/file/d/1UXBYez5z8FlPPadz42oyoIrF-XIrfhWk/view?usp=sharing In this article we will study how to create the custom authorize filter step by step. Step1: Create tables Please create the UserTbl and CustomerTbl as follows – Step 2: Create a ASP.NET MVC Application using regular steps. Step 2: Create a CustController with index action to display list of controller , […]

Read More
| by Achyut Kendre | 552 comments

Custom Action Filters in ASP.NET MVC 5

Example Code: https://drive.google.com/file/d/1XFZdb_MtHAsoqe4mQG3_gx5q-K1SnUSJ/view?usp=sharing Just like a built in attribute we can also create custom action filters , in this article we will create custom action filter step by step. In this example we will create a custom action filter which when applied will generate the log of that action (name of action, controller name, datetime) […]

Read More
| by Achyut Kendre | No comments

Authorize and AllowAnanymous Attributes in ASP.NET MVC 5

Example Code: https://drive.google.com/file/d/1vU4wNkp35Co8amL-_ZY6Z7HbVs2uj1yK/view?usp=sharing [Authorize] Attribute Authorize Attribute is built in attribute when applied on action or controller you can access that controller or action only after login. [AllowAnanymous] Attribute When you apply AllowAnanymous Attribute on any action and controller the action can be called without login even though controller is Authorized it can not be […]

Read More
| by Achyut Kendre | No comments

Action Filters In ASP.NET MVC 5? Few Built in Filters.

Example Code: https://drive.google.com/file/d/15OGfgD_p6pqZDOV8obhF4ykSYEAwhYTj/view?usp=sharing Filters/ Action Filters are the built in or user defined attributes those can be applied on action or controller which help you to execute some logic/code before execution of action or after execution of the action. Filters allow you to add pre and post logic to action which will be executed before […]

Read More
| by Achyut Kendre | 1 comment

What is Child Action Calls? How to in ASP.NET MVC 5?

Example Source Code: https://drive.google.com/file/d/1dkgkEq9WR1b1hlDks-pEy8Fx6YBdEEgX/view?usp=sharing What is Child Action Call? When we call any action and that action returns view so that action execution will be completed when a view is returned but before completion of view processing if we call any action in between from the view that is called child action call whoes result […]

Read More
| by Achyut Kendre | No comments

How to Create Partial View in ASP.NET MVC 5?

Example Source Code: https://drive.google.com/file/d/1dkgkEq9WR1b1hlDks-pEy8Fx6YBdEEgX/view?usp=sharing Partial view is view that can be reused or shared in another view. A partial view is a reusable portion of a web page. It is .cshtml or .vbhtml file that contains HTML/CSS/JAvaScript or server side code just like any other view. It can be used in one or more Views […]

Read More
| by Achyut Kendre | No comments

What is Antiforgery Token and How to use it in ASP.NET MVC?

Example Code: https://drive.google.com/file/d/1wc0fpPUD-pDI4fRB6dLIX4BxsDoIH5VC/view?usp=sharing To help prevent CSRF attacks, ASP.NET MVC uses anti-forgery tokens, also called request verification tokens. It verifies the tokens before accepting the request into ASP.NET MVC controller action which prevents the Cross Site Request Forgery. What is CRF? Cross-Site Request Forgery (CSRF) is an attack where a malicious site sends a request […]

Read More
| by Achyut Kendre | No comments

Curd Operations using Entity Framework Code First and ASP.NET MVC

Example Code: –https://drive.google.com/file/d/1G5oroBmfsy30_avDAlZrsy27KGPCBGRl/view?usp=sharing You can do the curd operations as we do it using DbFirst their is no change in it. Step 1: Index Action Code Index View Code with Index.cshtml Step 2 : to create the Emp we need to create the create action with HttpGet and HttpPost as follows – Step 3: You […]

Read More