Geeks With Blogs

News

Steve Clements .Net and then some.... .NET
Minify JS and CSS in Visual Studio Build Events
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 ......

Posted On Saturday, December 3, 2011 3:52 AM

Using Telerik MVC with your own custom jQuery and or other plug-ins
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 ......

Posted On Wednesday, January 5, 2011 3:11 AM

ASP.net MVC | MvcBuildViews | MachineToApplication Error
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 ......

Posted On Monday, November 29, 2010 8:12 AM

Dynamic connection for LINQ to SQL DataContext
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 ......

Posted On Friday, April 16, 2010 1:14 AM

EasyDB | What a complete waste of my time...
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 ......

Posted On Tuesday, September 30, 2008 9:13 AM

LINQ the lot
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 ......

Posted On Wednesday, May 28, 2008 5:01 PM

Microsoft Source Analysis for C#
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 ......

Posted On Monday, May 26, 2008 9:22 AM

Silverlight 2.0 MIME type
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 ......

Posted On Friday, March 28, 2008 10:33 AM

.net 2.0 in VS2008
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! ......

Posted On Tuesday, February 19, 2008 9:27 AM

Error | EventType clr20r3
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 ......

Posted On Wednesday, April 30, 2008 4:57 PM

Me, Google Analytics and US coverage...
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 ......

Posted On Monday, April 28, 2008 5:48 PM

Gotcha | Windows Service reinstall
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 ......

Posted On Sunday, April 27, 2008 7:09 PM

ASP.net Wiki and my thoughts...
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 ......

Posted On Saturday, February 9, 2008 4:47 PM

Looking for WPF and WCF training courses

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

Posted On Wednesday, January 30, 2008 11:04 AM

VB more popular than C#...f'off is it
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 ......

Posted On Saturday, December 15, 2007 6:02 PM

Knowledge nugget: the 'this' constructor clause
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 ......

Posted On Friday, January 25, 2008 12:43 PM

Bristol (UK) User Group: DotNetDevNet.com
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 ......

Posted On Wednesday, January 23, 2008 10:26 AM

Copyright © Steve Clements | Powered by: GeeksWithBlogs.net