Fill server cache with a large data object and have the browser be responsive by using threads

Recently I was working on a problem, and after testing the solution I thought it would make a good blog post.  Here is what I was trying to solve:  Fill the cache with a large set of data (approx. 1M items). Have the original request to the website fill the cache and not block the browers responsiveness….


Casting with Linq

I’ve been working with Linq lately and thought I would post 2 examples on casting with Linq.  Most of the ways that you get data back from linq is in the IEnumerable<> type.  So, here’s two ways to cast to an object that you can use: Linq to SQL Once you create your dbml file it will generate…


Model View Presenter – with base functionality

Lately I’ve been doing a lot of research and development around patterns and unit testing.  One pattern in particular, Model View Presenter (MVP), I found to be a very good pattern for doing web development.  The only thing, is that if you want to learn about the MVP, there seem to be two options.  1)  Completely…

9

Be a Silverlight DJ – with my Silverlight Alpha 1.1 sample

I wanted to get my hands dirty with Silverlight Alpha 1.1 and so I decided to make a DJ table with two turntables where you can match two beats in different songs.  You can click the button on the bottom right of each turntable to get the music started.  You can pause it or rewind it…


Quick tip for deploying ASP.NET Ajax to a web farm

If you are having issues with your ASP.NET Ajax application after you deployed it in a web farm and you notice that your partial page refreshes are not working, or you have javascript null reference errors, the problem lies in a config setting.  By default the setting for the MachineKey in ASP.NET is AutoGenerate, so when the session hops…


Sandcastle Target File (using March CTP)

I’ve been working on building MSDN style documents for my assemblies and wanted to automate this into my build script.  If you follow the example that comes with the Sandcastle download, it has a .bat file that executes commands for all transformations and executables.  I preferred a target file that I could add in a…

1

MSDN and TechNet Search Updated

The team I am working on just finished a re-write of MSDN and TechNet search.  The MSDN and TechNet search pages now allow users to get to their answers faster than ever! Some key enhancements to the search are: Refinements and prescoping of search terms – after your initial search you can narrow or broaden based on sub-terms…


Componentizing Silverlight – what I consider best practices

I was looking at a post on Mike Harsh’s blog about a utility that turns XAML into javascript and I didn’t entirely agree with what this utility accomplished.  A while back I posted an entry about hooking in web services, Silverlight (WPF/E) and ASP.NET Ajax.  Although I did use string concatenation in the sample, I was posting a simple…

2

Get at the ASP.NET Ajax control name with the BehaviorID property

If you have ever worked with ASP.NET and binding data to a repeater control or placing content inside master pages, you’re probably familiar with how ASP.NET renames the control to make it unique.  This makes web developers have many headaches as they try to get to those controls from javascript.  Here’s a scenario I was…

5

WPF/E, ASP.NET AJAX and Web Services – hooking it all together

Recently I’ve been working with WPF/E and extending some code that I have to make it more visually enhanced.  To display the proper data on the page I wanted to do the following: call a web service asynchronously, have it return to me an arrary of a complex type which I could then work with in javascript to…

2