December 2008 Entries

Dynamic Image Loading, Caching, & Performance

I came across an interesting blog posting and comment today doing some research on ASP.NET performance. Essentially, Alik Levin mentions that if you're loading images dynamically (either from a file-system or DB) you will not be taking advantage of browser/client caching out-of-the-box. I'm using a very simple HTTP Handler in one of my applications, the handler, well, handles serving up images in my application - something there are lots of. So it seems like it makes a lot of sense to have the browser...

ASP.NET Performance Tips

In the post below I am going to run down a short-list of some of the less-popular performance tips and the reasoning behind them. There are loads of blog postings and articles on asp.net performance enhancements, and I urge you to check those out as well. Onto the good stuff... Session.ReadWrite versus Session.ReadOnly It goes without saying that using the Session object will incur some performance overhead so if possible it should be turned off in the web.config. That said, If you’re using the Session...

Internet Explorer, CSS, and Image Quality

Came across an interesting post on the Joel Spolsky's blog the other day...Seems like all browsers besides IE use bicubic interpolation for image scaling.. As Joel mentions though, all you need to do is add img { -ms-interpolation-mode:bicu... } to the appropriate section/tag in your cascading style-sheet. Joel also has an example on his blog post if you'd like to see the evidence. Technorati Tags: CSS,Internet Explorer...

How do you post to GWB?

Well, I think the title is pretty self-explanatory...but I am curious. I usually log into GWB and use the web-based interface but I'm finding it's getting a little annoying, especially when I use SyntaxHighlighter and need to code PRE tags. So...how do you post to GWB? I'm looking for a better method :) Cheers

MS AJAX 4.0 New Feature; Templates

John Katsiotis has a great example up on one of the new ASP.NET AJAX Features, client-side templates. This means that you can refer to properties in your HTML. John has a much better example on his blog, but essentially you can do stuff like this: And your .NET code would basically return an object of type employee to your HTML. The framework will handle populating the input values based on the properties names assigned (e.g., value="{{ PropertyName}}"") public static List GetVal() { List emplist...

Syntax Highlighter...Finally

I'll admit this post is mostly a reminder for me. But in any case, I'm going to start using syntnaxHighlighter on my blog in an effort to clean things up a bit. I'll also update older posts where code is posted with this logic if it's a post that is viewed frequently. Link to support languages for SyntaxHighlighter Link to usage example...

Another Abstract Factory Explanation

Please note, I've moved this post and cleaned it up a bit...you can find it at the following URL: http://geekswithblogs.net/S... Cheers

Turning validators on from Javascript

Oh the adventures of JavaScript and ASP.NET. Can you turn on validators [RequiredFieldValidators or otherwise] from JavaScript. Yes, and actually it is easier than I thought. ValidtorEnable(ControlId,Tr... Ex: //You could easily make this prettier by not hardcoding the ClientID here ValidatorEnable(document.ge... true); Keep in mind, you need to pass the object not the clientID of the object. Source: http://msdn.microsoft.com/e...

Twitter