Common Pattern in ASP.NET Razor For Clean cshtml Pages

I’ve been doing a lot of work over the past year in Microsoft’s ASP.NET Razor.  I’m not an html wizard and definitely a razor syntax wizard, but I have figured out a way that saves me time over and over.  It’s basically the same pattern of thinking that has me often do things in 2 or 3 steps instead of one just to make sure the logic is overly clear. In this case, I often find myself trying to create complex Razor syntax to output data.  That is, say I want to output a link that combines a static URL with a dynamic one coming from a model.  My first work is almost always trying to do it all at once and I’m guessing at least someone is going to tell me how I could have done.  That is, I want something like (in non-working … Continue Reading

Proving to Myself that in ExtJS 5 ViewModel data does move Functionally

I’ve been having issues that makes me think that ViewModel data in ExtJS 5 does not move through the prototypical inheritance chain so I put a small example to show my case.  Of course, my example works exactly as exptected.  I’m showing it here just for reference.  The output is simply what is below. The problem I've been having is with bindTo to get a model row.  From what I can tell, data moves exactly as expected but I'm not sure that store and formula model view stuff follow the same path.  I can drill down and see it in the prototype but it is not obvious like it is with data.  More research coming. Object {from2: "from2", from1: "from1"} Ext.application({ name: 'MyApp', launch: function () { … Continue Reading

Sencha ExtJS 5 Checkbox DataBinding


I often find that something does not work as I expect and I have to take the problem to bits.  In this case, I was expecting to post a bug to the Sencha team about DataBinding and checkbox field but as is often the case, making the simple example brings out the correct solution and understanding.  So, in light of sharing, here is my simple working example of two way databinding with Sencha’s ExtJS 5. You can see from the example and code that 1,true (and “on” not shown) all check the box as you would expect. Ext.application({ name: 'ProblemBindApp', launch: function () { Ext.create('Ext.container.Viewport', { autoShow: true, viewModel: { data: { … Continue Reading

Xamarin Meetup Tonight In San Mateo: New Features in Xamarin V3 and High Level Overview


Hope You Can Make it! … Continue Reading


Get every new post delivered to your Inbox

Join other followers: