Browse by Tags

All Tags » C# » .NET (RSS)

One-Line C# #1 : Remove Whitespace from a string by zowens

Thought I'd post a quick extension method that I made today. Hope it helps someone. public static string RemoveWhitespace( this string str) { try { return new Regex( @"\s*" ).Replace(str, string .Empty); } catch (Exception) { return str; } }
Filed under: , , ,

Misuse of Delegates??? by zowens

In the evolution of the ideas presented in Java, C# has provided the idea of method delegation and delegates, which I'm sure you are well aware of. In C# 3.0 with the introduction of the LINQ, Lambdas were born. With Lambdas, we are able to provide an...
Filed under: , , ,

ASP.NET MVC CSS Sprite by zowens

A month ago, I wrote about my technique to output a CSS sprite for ASP.NET . Granted, I made a big mistake. I put WAY too much bloat into the post. Not a K.I.S.S. moment. I have reworked my CSS sprite technique to be unique to MVC. I've used the most...

Source Code conversion as part of a Build Process by zowens

If you're like me, you want a particular piece of code in your particular language. For example, a lot of people want the Club Starter Kit 2.0, 3.0 in C# since it has been written in VB. Me being the lazy open source developer that doesn't get paid :...

Coding Pet Peeves by zowens

Any experienced coder has pet peeves when it comes to reading other people's code or writing code. It might be that you don't like regions or that every method should have comments. But here are my two biggest pet peeves when it comes to C#. Var abuse...
Filed under: , ,

Improve ASP.NET Performance - CSSmin by zowens

If you follow Douglas Crockford's wor k, you might know about JSMin , a bit of code written for various languages to optimize JavaScript to make it smaller. One thing it does is makes everything go to one line, eliminating some of the space by removing...

Poll: JavaScript library for an eCommerce site? by zowens

Click Here to vote Here are your options: jQuery YUI Prototype/Scriptaculous MooTools Ext (using jQuery as backend) Ext (using YUI as backend) Ext (using Ext base) Happy voting!

TIP OF THE DAY : Override the tag in a webcontrol by zowens

For my New Years Resolution, I'm going to try and start blogging more both here and on my company blog. As a result, I'll most likely revert to these small babies -- Tip of the Day. Hopefully these posts can be short and sweet. Here's the background on...

SubSonic ASP.NET Providers Revisited by zowens

It's been quite a while (2 months actually) since I announced the creation of the SubSonic ASP.NET Providers . Since then, I haven't really done much with the code base, mostly since I have to spread my time out between a lot of things now a-days. But...

Determine if a user enables JavaScript by zowens

I made a post over on my business' blog about the general concept of my post today, determining if a user has JavaScript enabled. This is sort of a touchy subject since Microsoft has their own AJAX stuff and they pretty much do what they want with that...
More Posts Next page »