Simple Action Filter For Getting The Information Of Uploaded Files in ASP.NET MVC

In this article, we will talk about how to create a simple action filter for getting the information of uploaded files in ASP.NET MVC application. Let`s get started.

Introduction:

In most of the ASP.NET MVC applications, there is a need for uploading file/files on server. We save that file information in database or save the file on server in particular folder. If we need to provide the file upload functionality in only one place, then it`s easy. But if we need to provide this functionality in many places, then the code for getting the file/files information gets duplicated in many places in our application. To avoid the duplication of code and simplify the file/files upload procedure, let`s create a simple action filter.

Read more

How to Create Custom External Helper Methods in ASP.NET MVC

In this article, we will talk about how to create and use external helper methods in an ASP.NET MVC application. In my post, How to Create Custom Inline Helper Methods in ASP.NET MVC  we talked about what are helper methods and how to create and use inline helper methods in MVC application. (Note: if you have not read the post regarding custom inline helper in MVC application, i will recommend reading it first as it is related to this post). Before getting started with how to create custom external helper methods, let`s just discuss about external helper method and when should we use it.

Read more

How to Create Custom Inline Helper Methods in ASP.NET MVC

In this article, we will talk about what are helper methods, how to create and use helper methods in an ASP.NET Mvc application.

What are Helper methods?

Helpers are package of few lines of code or a markup which can be reused throughout an MVC application. There are two types of helper methods, Inline helper methods and External helper methods. In this article, we will talk about Inline helper methods.

Read more