Geeks With Blogs

News
Steve Clements .Net and then some.... ASP.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

jQuery Datatable in MVC … extended.
There are a million plugins for jQuery and when a web forms developer like myself works in MVC making use of them is par-for-the-course! MVC is the way now, web forms are but a memory!! Grids / tables are my focus at the moment. I don’t want to get in to righting reems of css and html, but it’s not acceptable to simply dump a table on the screen, functionality like sorting, paging, fixed header and perhaps filtering are expected behaviour. What isn’t always required though is the massive functionality ......

Posted On Saturday, March 5, 2011 3:58 PM

Setting jQuery after ASP.net AJAX partial post back
OK, so for some reason you have a mega mashup solution with ASP.net AJAX, jQuery and web forms. Perhaps you are just on the migration from AjaxControlToolkit to the jQuery UI framework – who knows!! Anyway, the problem is that when you post back with something like an UpdatePanel, you will find that your nicely setup jQuery stuff, like the datepicker for example will no longer work. You may have something like this… $(document).ready(function () { $(".date-edit").datepicker({ dateFormat: "dd/mm/yy", ......

Posted On Monday, February 7, 2011 2:26 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

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

Sharepoint | Silverlight video player web part
Silverlight makes working with videos pretty straight forward, Microsoft makes Silverlight pretty straight forward with ASP.net and sharepoint is written in ASP.net, so match made in tech heaven!! I wanted a video player web part for sharepoint, that had some simple functionality like play, pause and volume. I started with expression encoder which output a nice media player interface...this is OK, but has a couple of restrictions; 1, its far to rich for what I wanted, animations all over the place ......

Posted On Tuesday, August 26, 2008 4:45 PM

Cricket Club Starter Kit CodePlex project
I mentioned a while back that I had something I was working on that involved a change in language, actually a pretty radical change. I have been working on vocational project written in VB.net and made heavy use of LINQ to SQL. I wasn't sure of LINQ to SQL for anything else other than RAD and to be honest I'm still not. Anyway, I'm not getting into that debate. Needless to say I went all the way and don't use a single sproc in this project. Some of you will know I play cricket every Saturday for ......

Posted On Monday, June 23, 2008 7:25 AM

MS: Would it really have been so difficult?
When working with asp.net and now XAML I lean towards code view over the designer, a preference of course, but considering this feature I guess I am not alone. When working with events in XAML you can simply type "Click=" and the nice little helper jumps up asking what event handler you'd like to wire it up to or even create a new one and the stub will be created. NICE! As an added little beauty, this doesn't automatically send you off into the code behind. Why-o-Why isn't it the same for asp.net ......

Posted On Thursday, April 10, 2008 8:49 AM

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

Copyright © Steve Clements | Powered by: GeeksWithBlogs.net