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)
Instead of
@{int a = @Model.Property }
You should
@{int a = Model.Property }
Conclusion, you should be aware of the Razor V3 Advanced Parser feature which is different with the old version.
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 to the existing twitter bootstrap.
[code language="javascript"] $('#filterByTag').multiselect({ buttonWidth: '150px', nonSelectedText: 'None', allSelectedText: 'All', selectAllNumber: false }); [/code]
Above explain that, if we want to set our custom text when nothing is selected we set to 'nonSelectedText', same goes to when all are selected, we set to 'allSelectedText'. Meanwhile, to show or hide the numbers when all are selected, we set to 'selectAllNumber'.
Cheers.
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!
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!