Archivi del mese: novembre 2015

Inline if MVC Razor inside style or class attributes

There is no way to use inline if inside Razor,the only way is use Html.Row helper like this

Pubblicato in MVC | Contrassegnato , | Lascia un commento

CascadingDropdown jquery plugin

CascadingDropdown is a great jquery plugin to implement cascading drop down in javascript I suggest you this 2 demo links. http://www.dnasir.com/github/jquery-cascading-dropdown/demo.html http://www.jqueryscript.net/demo/Dynamic-jQuery-Cascading-Dropdown-Lists-Plugin/ This plugin works great when I navigate to a “create new item” page. The problem I found is … Continua a leggere

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

Visual Studio 2015 Publish a website without roslyn folder

I published a Web Site using the new Visual Studio 2015 Looking the published folder I found a folder named roslyn inside bin folder. This happens deploying in File System. If you have to copy the deployed folder to an … Continua a leggere

Pubblicato in Asp.Net | Contrassegnato , , , | 1 commento

Entity Framework update entity and childs entities, Bulk Delete part 2

In the previous post I’ve explained how to perform a single update, but what I’ve to do If I need to update a master entity and related child? As I’ve explained to update my model I use the 3rd method: … Continua a leggere

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

Entity Framework update without select part 1

To update an entity in EF6 threre are many methods. Working with other people I noticed that unfortunately many developer don’t think what the ORM will do on DB to perform the update. I found it also in many example … Continua a leggere

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

No password Hasing MVC Identity 2.0

I know that all passwords must be hashed on a DB and I do it in all my personal projects; but unfortunately some times the customers ask me to have the clear users password. That’s why in some company the … Continua a leggere

Pubblicato in Asp.Net, MVC | Contrassegnato , , , | Lascia un commento

JQuery get text without children text

The .text JQuery method return the text of an element and all the inner element’s text so: There are many solution on the web but no extension for jquery so I decide to do a useful Jquery plugin. Have a … Continua a leggere

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

Raspberry PI 2 Raspbian virtual Keyboard

After I bought my first Raspberry pi 2 I did my first test with raspbian. Inside Raspbian there are some games installed but there isn’t a virtual keyboard!!!! WTF?! I’ve lost many many times to configure all so I decide … Continua a leggere

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