Mar 6, 2006If you often use shortcut keys to navigate the web or any other program for that matter, you probably expect the ESC key to close popups and message boxes (alerts). When using
popup windows on the web, this is however not the case. If you use popups to show
full sized images of thumbnails, it would be natural to press the ESC key in the expectation
of the popup to close.
To achieve this functionality, we have to place a little JavaScript in the popup window.
Add the ...
[More]* $4.95/month ASP.NET Hosting with FREE SQL 2012 DB! – Click Here!
Mar 6, 2006Today I had to find a way to force x number of rows on a GridView. The problem is
that if the GridView.PageSize is larger than the number of rows you are data binding, the GridView itself gets smaller in the height. You often see it when paging through
the pages of a grid. The last page is always shorter than the rest, because there
are fewer rows. That is usually not a issue, but I had to keep our designers happy.
It is actually pretty simple in a class that inherits fro...
[More]* $4.95/month ASP.NET Hosting with FREE SQL 2012 DB! – Click Here!
Mar 5, 2006I used nDoc all the time back in the days
of Visual Studio 2003. nDoc is a tool that creates documentation based upon the
XML comment you write in your source code files. Then came VS 2005 and, as far as
I understand, nDoc had to be rewritten in order for Generics to work. That was back
in the Whidbey beta 1 time frame in late 2004, and is still stuck there.
I have searched the web many, many times, trying to find a substitute to nDoc. I didn't
find squat. I hav...
[More]* $4.95/month ASP.NET Hosting with FREE SQL 2012 DB! – Click Here!
Mar 4, 2006As you may know by now, I’m not a sucker for buzz words. On the contrary, I like facts, logic, and good old thinking. Not some new fashionable buzz word about something that
really isn't new or any more exiting than it ever was, just because the right people
start blogging about it. AJAX comes to mind here in particular.
Is it just me or does it seem that developers are the only ones not jumping head first
on the buzz word hype? Think about it. Developers are the ones imp...
[More]* $4.95/month ASP.NET Hosting with FREE SQL 2012 DB! – Click Here!
Mar 4, 2006The product manager at Traceworks and
my boss, Morten
Wulff, sent me the eBook Getting
Real by 37signals on e-mail last friday.
I was a little reluctant to read it, because it was written by the guys from 37signals.
They have become much hyped amongst the designers at my workplace and the name 37signals
is almost a buzz word like web 2.0 and AJAX. It’s not unusual to
hear one of the designers use a sentence like “I like that lamp on your desk, it’s very web 2.0”. ...
[More]* $4.95/month ASP.NET Hosting with FREE SQL 2012 DB! – Click Here!
Mar 2, 2006I redesigned this blog yesterday because the old design was pretty boring. The idea
is to keep the design as clean and simple as possible, but still be nice to
the eye. I'm not sure it is good enough yet, I feel like something's missing.
It is made like a dasBlog theme and I would
like to share the it to anyone interested, I just have to be sure I'm done before
releasing it to the public. If you are using dasBlog and are interested in this theme, please let me ...
[More]* $4.95/month ASP.NET Hosting with FREE SQL 2012 DB! – Click Here!
Feb 28, 2006I really hoped that IE7 with it's new XMLHTTP
engine (AJAX engine if you will), would out perform the old IE 6 by far. IE 6
is the slowest of the main browsers out there. Firefox and Opera is much faster processing
AJAX. I really don't know why. Is it the transport to and from the server or is it
simply just the html rendering performed by JavaScript? Maybe it's the DOM handling? I
don't know. The end result on the other hand, I know very well. I'm an IE man and
have...
[More]* $4.95/month ASP.NET Hosting with FREE SQL 2012 DB! – Click Here!
Feb 27, 2006You have probably at some point clicked the wrong input button on a web page, and
something bad happened. You deleted the wrong user, submitted to the wrong newsletter
or something similar. Wouldn't it have been nice if you had been asked to confirm
a critical decision like that? In ASP.NET it is so easy to create functionality around
post backs caused by input buttons or similar click-controls. This is also the reason
why it is important to let the user confirm actions to av...
[More]* $4.95/month ASP.NET Hosting with FREE SQL 2012 DB! – Click Here!
Feb 26, 2006Earlier today, I posted a method that
returns the total size of a directory, including all subdirectories. It returns the
bytes and not kilobytes, megabytes or gigabytes, so I write a little formatting method
to do just that.
private string SizeFormat(float size, string formatString)
{ if (size
< 1024)
return size.ToString(formatString) + "bytes";
if ...
[More]* $4.95/month ASP.NET Hosting with FREE SQL 2012 DB! – Click Here!
Feb 26, 2006For some reason, you cannot retrieve the total size of a directory in .NET, including
subdirectories, without a workaround. I always found it odd, that some of the most
basic features is not implemented in the .NET CLR by default. The list is very short
though, since the CLR is huge. I already wrote about the
missing Visual Basic functions in C#. Here is another little helpful method that
returns the total size of a directory in bytes
private double size = 0;
...
[More]* $4.95/month ASP.NET Hosting with FREE SQL 2012 DB! – Click Here!