Archive for 'Maurizio'

Create an e-mail attachment by retrieving from the network

During an implementation of an existing project I have had to add a feature to send an e-mail with attachment that has to be a report of reporting services.

The chosen format is pdf so you need to get the parameters to be passed via url querystring to export the report in pdf format.

I have chosen to download the pdf file, and then I have attached them to the email on the fly without saving it to db or ...

Continue Reading →
0

AngularJS: Custom validation with Directives

Lately I’ve developed Self-Host ASP.NET Web API for our client with AngularJS as JavaScript MVW Framework I had to prepare a page where there was the need to configure the IP addresses and validate them through the control if already entered.

To do this I used a AngularJS directive for a custom validation.

Directive have the following elements:

  • require: this element allows directive to interact with the controller of the page
  • link: this element allows directive to access to the DOM of the page and inside ...
Continue Reading →
0