Archive for November, 2010
Operator ‘==’ cannot be applied to operands of type ‘System.Collections.Generic.KeyValuePair‘ and ‘‘
Monday, November 29th, 2010
So if you wish to do something like this to KeyValuePair using Linq ?View Code CSHARP1 2 3 4 5 6 var item = myDictionary.FirstOrDefault(x => x.Key == 123); if(item != null) { //blah blah } You will get this error Operator ‘!=’ cannot be applied to operands of type ‘System.Collections.Generic.KeyValuePair‘ and ‘‘ Since [...]
ASP MVC, Jquery modifying a select drop down with Json data
Thursday, November 18th, 2010
Was coding some new functionality and though I would post this, so that others can find it helpful. Lets say you have a form that has a checkbox that will update the select dropdown box with different values, when the checkbox is clicked. Something like the UI below. Your html code might look like ?View [...]
Back from Holidays
Tuesday, November 2nd, 2010
So haven’t posted for a while, was in home city Hong Kong for holidays and busy with work releasing software, gonna be posting a few more things coming up this month so be tuned in
