ASP.NET 4.5 has three different class which we can inherits to implements the controllers: Controller, ApiController and ODataController. In the latest applications that I implemented, because they were SPA, I used rarely the classic Controller (know as MVC controllers) and I developed a huge number of ApiController and ODataController. The first ones are used to... Continue Reading →
Managing OAuth 2 authentication with Swagger
In this post I want to talk about a product that could help us to produce documentation about the Web API services implemented in our application. Swagger is a popular framework that once installed in an ASP.NET application is able to produce documentation about all the Web API implemented in the project. Furthermore it give... Continue Reading →
Manage attachments chunks with ASP.NET Web Api
In the previous post I spoke about a custom MultipartFormData stream provider and how it can help us to manage some custom informations included in a request message. In that example I generated chunks form a file and I sent those to a rest service (AKA Web API) with some additional informations that were then retrieved from the... Continue Reading →
Custom MultipartFormDataStreamProvider in C#
Frequently, when we manage multipart/form requests and we send them to the server, we might want to add some additional informations. Perhaps we might want to split a big file in chunks and we might want to add some additional informations like the id of the upload session, the chunk number, the file name and... Continue Reading →
Real-time search with ASP.NET and Elasticsearch
A common problem that we are faced when we have deployed our applications is improve the performance of a page or feature. In my case for example I had a field where I could search and select a city, so the starting elements were a lot and the search was quite slow; I wanted a... Continue Reading →
Attachments management with Angular 2
A common issue that we faced in our applications is implement a component to allow the management of the attachment upload. We need to insert a file input field in the page, grab the change event of the field, extract the file and send it to a service. Recently I have needed to implement this... Continue Reading →
Owin middleware for static files
Owin is a middleware that allow to define the application configurations so flexible and powerful and decouple server and application. This layer is executed during the application startup and define the basic configurations of the application; for example, in a web application, it can define if the WebApi are used and the routes. Another... Continue Reading →
Manage tables data with AngularJS Part 3: configuring the fields typologies
The last part of this argument is configuring the field typologies of the tables to manage. What you need to do is specify for one or more fields of the table a couple of informations, like the typology of the field (text, number, radio, dropdown) and perhaps a list of values. Also we might want... Continue Reading →
Manage tables data with AngularJS Part 2: nested directives
With the Angular directives you can build reusable components, witch can accept parameters and scope variables, and witch can have customized behaviours. It can be nested and communicate between them with functions and parameters. We can using the directives for implement a dynamic HTML table grid, with dynamics rows and columns. Grid model In order... Continue Reading →
Manage tables data with AngularJS Part 1: tables metadata
During the deployment of an AngularJS app, we often develop controllers and views to manage data of basic tables, such as zip, city, country and so on. We need to offer to the users the CRUD operations of these tables; the functionalities and the structure of these controllers/view are very similar and you need to... Continue Reading →