In one of my projects which requires the build process to incorperate, however the long path of dependencies in node_modules caused MSBuild failed to build the packages. It's because nodejs deep dependencies have extremely long paths and it caused Windows failed to remove or zip the files accordingly. Therefore, there is a node package called flatten package which flatten the node_modules folder into...
Administrator Mode
What you can't do when you are in Visual Studio Administrator Mode instead of User Mode
00:27 As described above, We cannot move existing folder into the project if we are in visual studio administrator mode. Drag and drop won't work there. It's because Window Explorer is a user process. Lesson learnt. ...
Recently, I encounter the bug of code CS1513 while trying to compile old project of MVC3 into newer version. Compiler Error Message: CS1513: } expected I found out that without proper usage of Razor syntaxes, you will encounter this when you upgraded MVC to latest version. There are several ways might cause you this error. For example, Instead of @if(@variable) You should @if(variable)...
Bootstrap
Customization - Bootstrap Multiselect - Set Custom Text and Showing Numbers On Selection
17:13 Following is a short note on how to customize the display in Bootstrap Multiselect. I had encountered difficult in finding the documentation online. Hence after go through the js itself, there are options for us to set the text when none is selected/all are selected and options like to show the total number when all are selected. Bootstrap-Multiselect component is one of the best extension...
When I run the wiredep to have all dependencies correctly injecting into my index page. Font-awesome was left out. It failed to inject font-awesome when running gulp wiredep. Solution: In order to include them you need to include overrides method in the bower.json file. This is the update by font-awesome that affect the allocation Hope it helps! ...
In my recent upgrade from MVC 3 to MVC 5, I encountered another issue/bug in system which JSONResult return null is working properly in MVC3 became an error in MVC5. So, the code below, return Json(null, JsonRequestBehavior.AllowGet); should be changed to, return Json(string.Empty, JsonRequestBehavior.AllowGet); It should return empty string to avoid being recognized as error. Cheers! In my recent upgrade from MVC 3 to...
Export Excel features has been introduced by Telerik Kendo since early of 2015. There will be a lot of customization if we need to handle the format we want. To customize the cell value in our preferred format, We need to make changes at excelExport event. From here, we just call the saveAsExcel() method to trigger the event and export according to our...