Archivi del mese: dicembre 2015

Remove XSLT auto generated empty namespace xmlns=””

This is the last article of this year. Today I have worked with XSLT and I found a great things that at the beginning can be strange. My XML My XSL My XSLT Result This things seems strange but XSLT … Continua a leggere

Pubblicato in Uncategorized | Contrassegnato , , , , | Lascia un commento

Easy CSS way to center item with position absolute

There are 2 way to center a child at the center without use any javascript. I wrote the style inline that is easier to understand Solution 1 move the parent to the center and then move the child right by … Continua a leggere

Pubblicato in HTML5 | Contrassegnato , , , | Lascia un commento

Jquery add, append, prepend, remove child

Starting from child element: appendTo, prependTo Add at the end the selected item to a jquery container. This sintax return the element added, so it can be use in fluent syntax. In this case appendTo or prependTo return liElment. Prepend … Continua a leggere

Pubblicato in HTML5, javascript, jquery | Contrassegnato , , , , | Lascia un commento

MVC compile views cshtml

One big problem in MVC is when you change some properties in an exists model. If there are already some views that bind that properties will stop to works but when you compile the entire project, visual studio doesn’t throw … Continua a leggere

Pubblicato in Uncategorized | Contrassegnato , , , | Lascia un commento

Call a Web page in Scheduled task

There are many way to call a web page inside Skeduled Task Create a .bat file with this commands start Simple but It will open the browser with the page and it’s not good in a server. Create a … Continua a leggere

Pubblicato in Powershell | Contrassegnato , , , | Lascia un commento

WebClient download page error: 403 Forbidden

Today trying to download a web page using WebClient, I have received 403 Forbidden. After some test I found two possible solutions:

Pubblicato in .Net, c# | Lascia un commento

Join in Linq, Join in Entity Framework

There are two way to do a join in a query with linq. Using Join Using the relationship property I tried both ways and the SQL generated by Entity Framework (EF6) is the same, so choose what you prefer.

Pubblicato in c#, Entity Framework | Contrassegnato , , | Lascia un commento