Geeks With Blogs
urig Tidbits from a .net life Knowledge Base My own personal Knowledge Base - Where I document solutions to annoying technical problems that I encounter at work or at home.
FIX: Google Toolbar resets/breaks/messes up IE7 toolbars
Ever since I've upgraded from IE6 to IE7, I've noticed that whenever I reopen my Internet Explorer, all my toolbars get messed up. It's as if they are reset to the original "factory" setting, regardless of how carefully I've tweaked them before previously closing IE7. Clearly something was wrong, but to my surprise the fault lay not with "Evil Microsoft" but with the "Benevolent Google"'s beloved Google Toolbar(!). I've learned here that the Google Toolbar uses some evil voodoo ("hijacks ITBarLayout ......

Posted On Wednesday, April 11, 2007 1:42 PM

Wake On LAN
I use this blog as my private (or should I say protected?) "Knowledge Base" repository. Whenever I bump into an issue and successfully resolve it, I'd blog about it for future reference's sake. This post is the same, except I wasn't the one to resolve the issue, or even bump into it for that matter. That credit goes to Jeff Atwood over at Coding Horror, who wrote a lovely review about "Wake On LAN". WOL is a bit of tech that's integrated into most modern LAN adapters. Even when your computer in sleep ......

Posted On Sunday, February 11, 2007 1:12 PM

Workaround: How to set an ASP.Net Image's NavigateUrl property without having it HTMLEncoded.
Just bumped into another one of ASP.Net's annoying quirks. When setting the NavigateUrl property of an <asp:image>, ASP.Net automatically "HTMLEncodes" the value assigned. So if you'd try to pass a query string in the url, like so: <asp:image id="imgExample" runat="server" navigateurl = "example.jpg?foo=bar&a... /> you'll end up with something like this on the client side: <img id="imgExample" src="example.jpg?foo=b... ......

Posted On Tuesday, September 19, 2006 4:30 PM

CustomValidator will validate empty controls - but only in ASP.Net 2.0.
A while back I ranted about ASP.Net's CustomValidator behaving badly - When the control it is set to validate is empty, CustomValidator will (surprisingly) perform no validation. Now I've learned that the good people at Microsoft have resolved this issue, but only in ASP.Net 2.0. The CustomValidator now has a new property called ValidateEmptyText. As the name implies, when this property is set to true empty controls will be validated by the CustomValidator. Too bad this solution is only implemented ......

Posted On Tuesday, September 19, 2006 1:27 PM

ASP.Net CustomValidator is useless for empty controls
For years I've been living with the unsettling feeling that there's something mysteriously wrong with ASP.Net's CustomValidator control. Every time I made the courageous decision to tackle this elusive control and try to harness it for my use, something would go wrong. Something I couldn't quite put my finger on until now. I've just discovered the terrible secret behind the CustomValidator control: it doesn't fire if the control to be validated has an empty value. Here it is, in black on white, from ......

Posted On Thursday, July 27, 2006 3:17 PM

Force Explorer to Start With the Folder You Want
How many times a day do you click the Windows Explorer shortcut in your Quick Launch toolbar and then navigate to the folder where you do most of your work? Here's a tip from the wonderful Windows Annoyances website that saves me the trouble of navigating the same path over and over again - I "Force Explorer to Start With the Folder You Want". Make me mad to think why Microsoft fail to provide easy documentation of explore.exe's command line options ......

Posted On Wednesday, July 19, 2006 8:18 AM

The neatest Notepad trick ever.
Who knew the old Notepad.exe still had secrets hiding among its modest codebase? Try this: Open a new text file with Notepad. On the first line type .LOG (in capital letters). Save the file and exit Notepad. Now, every time you open the file in Notepad, it will be opened on the last line and a time stamp will appended to it just before that. The file is effectively a poor man's journal. How neat is that? :) via Gadgetopia ......

Posted On Monday, July 10, 2006 3:09 PM

How to make Windows XP prefer one network connection over the other
I have two network adapters in my home computer. One goes into my cable modem and hooks me up to the internet. The other goes to my router (which further connects to my XBOX and to a laptop whenever I have one). Recently I've been experiencing an annoying problem. The dialer program that connects me to my ISP via my cable modem failed to connect and consistently reported "Error 769 - The specific destination is not reachable". After some tinkering I realized that this would go away only if I disabled ......

Posted On Monday, July 10, 2006 7:08 AM

MS SQL locks sa account out automatically on having wrong password entered.
Strange behavior from MS SQL Server 2005. I "spontaneously" get this error when trying to connect: Login failed for user 'sa' because the account is currently locked out. The system administrator can unlock it. (Microsoft SQL Server, Error: 18486). After some digging I've found this useful chain of posts, logged into the server locally and ran the following line: ALTER LOGIN sa WITH PASSWORD = 'your_password_here' UNLOCK I suspect what happened was that MS SQL Server decided to lock the sa login ......

Posted On Monday, May 29, 2006 3:36 PM

.Net 2.0 SqlParameter rounds DateTime values (?)
Just ran into a bit of nastiness with the SqlParameter class in .Net 2.0. The scenario: I have a DateTime with a value of '05/30/2006 23:59:59.999' (that's 999 milliseconds). When I save it to a (Microsoft SQL Server 2005) DB using a stored procedure invoked by SqlHelper.ExecuteNonQuery(), the value surprisingly changes to '05/31/2006 00:00:00.000'. A bit of step-by-step debugging led me to the culprit. When the DateTime is stored in a SqlParameter to be passed to SqlHelper.ExecuteNonQuery(), the ......

Posted On Sunday, May 21, 2006 3:52 PM

Copyright © urig | Powered by: GeeksWithBlogs.net