Knockout (or any javascript) Intellisense not working if move script file locations

I found while playing around with Knockout.js, that my Visual Studio Intellisense wasn’t working. This turned out to be because I had formatted my Scripts folder, and moved standard Javascript libraries into another folder. This meant that Visual Studio couldn’t find my _references.js file. At first I added the following to the @Scripts Section in [...]

By | 2017-07-24T08:33:17+00:00 June 26th, 2013|HTML, Javascript, Knockout, Tips, Visual Studio|0 Comments

Binding the WPF WebBrowser Source Property

In an MVVM application I am currently creating, I had the need to embed the WPF WebBrowser control and quickly discovered that the Source Property is not a dependancy object, and so cannot be bound. I quickly search around on StackOverflow.com and found a neat solution in c#; http://stackoverflow.com/a/265648/1305169 The VB Version of which is; [...]

By | 2017-07-24T08:33:18+00:00 May 21st, 2013|.Net Framework, Binding, HTML, MVVM, Tips, VB.net, Visual Studio, WPF|0 Comments

SSRS 2008 R2 Reports are blank in Chrome

I stumbled across this apparently well documented problem today, where my SSRS 2008R2 Report was showing up fine in IE, but blank in Chrome; http://stackoverflow.com/questions/5968082/ssrs-2008-r2-reports-are-blank-in-safari-and-chrome It seems as though the main Div Tag uses IE compatible only Overflow styles, which Chrome doesn’t interpret well. I found a nice blog post here which explained how to [...]

By | 2017-07-24T08:33:18+00:00 May 1st, 2013|Bugs, HTML, Javascript, SQL Server, SSRS, Tips, Web|0 Comments

Forcing html Input element to Numeric Only Input

While developing a shopping cart function for a client, I needed to restrict the user to entering numbers only in an Input fieldI came across this handy post;http://www.itjungles.com/javascript/how-to-use-javascript-to-force-numeric-value-in-textboxBasically, we need to add the following function to the JavaScript section; function isNumericKey(evt){ var charCode = (evt.which) ? evt.which : event.keyCode if (charCode > 31 && (charCode [...]

By | 2017-07-24T08:33:18+00:00 January 21st, 2013|HTML, Javascript, Validation, Web|0 Comments