.Net and then some....
It’s pretty widely accepted (and common sense) that if you’re putting a site out into the wild – such a simple task as minifying CSS and JavaScript files can save a bunch of load time, especially on mobile devices. I’ve been playing about with this today and was quite happily using jsmin as described here until I noticed that in IE 7 and IE 8 the minified CSS didn’t work. The problem seems to be when using a background style, it takes out the space between the image url close bracket and the next ......
If you are using MVC it might be worth checking out the telerik controls (http://demos.telerik.com/a... they are free if you are doing an internal or “not for profit” application. If however you do choose to use them, you could come up against a little problem I had. Using the telerik controls with your own custom jQuery. In my case I was using the jQuery UI dialog. It kept throwing an error where I was setting my div to a dialog. Code Snippet $("#textdialog").dialog({ The problem is when ......
You may come up against this little error when working on a MVC application, I specifically find things like this crop up when you are upgrading from previous version e.g. VS 2008 to 2010 and the like. They are a complete pain in the bum quite frankly, you can spend hours googling around, trying this trying that, posting questions here and there etc etc…so I’m adding to the this and that which you will of course try, because it’s the sort of error you don’t care about…it’s just getting in the way ......
If for some reason you need to specify a specific connection string for a DataContext, you can of course pass the connection string when you initialise you DataContext object. A common scenario could be a dev/test/stage/live connection string, but in my case its for either a live or archive database. I however want the connection string to be handled by the DataContext, there are probably lots of different reasons someone would want to do this…but here are mine. I want the same connection string ......
After watching a DNRTV episode with Scott Cate on EasyDB I was really impressed and could definitely see how it could solve a requirement in a project I am planning... Straight after listening to the show, with the advice of Scott Cate (a promotion code), I hot stepped over to http://easydb.com to sign up. After waiting for a few days, maybe a week and still having heard nothing I tried again and was greeted with this little chestnut... ...and that remains to this day. Why bother doing a dnrtv episode ......
LINQ goes so much further than just SQL and XML. Something like this is just why I love LINQ, a LINQ query on an ASP.NET ListView controls items. 1: Dim items = From lvi In AspNetListViewControl.Items _ 2: Where CType(lvi.FindControl("Drop... DropDownList).SelectedValue = someIntVar _ 3: Select lvi) Getting a ListViewItem's where the selected value of a DropDownList is set to the value I want. So simple, yet so powerful. The observant among you will notice that this is in VB.net, not my ......
I was just about to blog about this, then I found this post while scanning the asp.net feed. Guy Barrette does a great job of summarising it. If your in a rush, the home page is: http://blogs.msdn.com/sourc... and you can download it from here: http://code.msdn.microsoft.... While in the link mode; I spotted this at the same time on Charlie Calvert's blog a quick list of keyboard shortcuts for VS2008 Technorati Tags: Microsoft Source ......
When you want to host Silverlight 2.0 applications in IIS you need to add the extension .xap for the MIME type applicaition/x-silverlight-... otherwise zip, no errors, nadda, nothing, zilch!! Technorati Tags: Silverlight 2.0,MIME type ......
I attended a user group presentation from Daniel Moth last night on Visual Studio 2008 and .net 3.5. I won't go on about the wonders of .net 3.5 as I'm sure you are well aware of them, but what did take me last night was the backward compatibility of it. I knew that VS2008 supported .net 2.0 and 3.0, but wasn’t aware that I could take advantage of so many new features still using .net 2.0. I would expect javascript intellisense to be supported and CSS, they aren't anything to do with .net, right! ......
As errors go I found this one is pretty horrific. I got the error deploying a windows service written in .net 3.5 from my Vista x86 dev rig, to a 2003 x86 server. Only having the .NET runtime installed on the server I wrapped the service up in a deployment project. The service installed fine, however when trying to start the service I got a "The service did not respond in a timely manner" error. Initially, like you would, I thought there was probably an error with my code in the OnStart method, but ......
I have been running Google Analytics on my site for while now, cant remember exactly how long! Its pretty good I guess, I haven't really looked at any others!! What I did find interesting was looking at the number of hits from the US - I get more from the US, which is obvious seeing the GWB is a US based concern and well, it's not exactly a small place!! The UK is second though! woot woot!! clearly the highest concentration of geeks, I haven't met either of them mind! :) I almost have a 100% of the ......
System.ComponentModel.Win32... The specified service has been marked for deletion. This is the first time I have ever seen this error and it may well have been complete luck that I haven't as there seems to be a pretty solid reason why it occurs. It popped when I uninstalled a service using InstallUtil.exe, then tried to install again using the same utility. Because I had the Windows Services window open (apparently it can also happen when you run uninstall without stopping the service as ......
Reading Scott Hanselman's blog this morning, he stated that MS have released ASP.net Wiki. The idea is basically a "one-stop-shop" for all things asp.net to save people the time of googling and going through the results. First of all I thought that sounded like a good idea, but thinking about it I'm not so convinced and let me tell you why! Looking through the wiki, what I basically see is a carefully selected collection of links to various posts on a particular subject, now of course the wiki is ......
I am looking for a training course in WPF and WCF in the Bristol, Bath or Exeter areas of the UK, but I'm not having much luck in finding any. I only seem to find them in London...anyone know of any?
Thx
Well it turns out that yes it is! To be honest I haven't ever given much thought to which the more popular language is but when listening to Scott Hanselman's latest offering it turns out VB is. Scott is chatting with Paul Vick (VB Principle Architect) and Paul Yuknewicz (Senior PM on the VB team) when they also mention that VB Express and even C++ Express have more downloads that C# Express - now I put this down to C# being used by pro's who have access to VS Pro or more Team Suite :) but none the ......
Knowledge nugget...catchy heh?!? I come across this some time ago and have since used it pretty heavily - its nothing new, but certainly a useful feature. Its used when overloading constructors in your classes, so you have for example... public class Foo { public Foo(string arg1) { // Implementation for arg1 } public Foo(string arg1, string arg2) : this(arg1) { // Implementation for arg2 } } So the top constructor with one argument is called when using the second constructor, so you only need the ......
Last night was the first user group meeting of 2008, and it was my first meeting - I have blogged about it before, just being the socially inept loner that I am!!, I just haven't got round to going. The presentation was on Test Driven development TDD (Another post coming on that!) from a guy called Craig Murphy - this is a really interesting subject to me as we adopt TDD as best we can, it does however sometimes gives way to deadlines!! It was reassuring to see that we go about TDD in the right way ......