Musings of Geekdom by Eric Newton

tail /var/log/thoughts
posts - 88 , comments - 41 , trackbacks - 68

My Links



Post Categories

Image Galleries

Developer Links

October 2005 Entries

DataFormatString not working in asp:BoundFields
As an update to this post, I ran across this bug filed (and experienced by yours truly) regarding the DataFormatString behavior changing from Beta2 to RTM. So we have to set the HtmlEncode property to true on EVERY single boundfield now? UPDATE: ...Just tried it... and its still ignoring the DataFormatString. Anybody have any suggestions ......

Posted On Monday, October 31, 2005 4:21 PM | Comments (6) |

.NET DLL collision hell. rinse. repeat.
Yesterday I blogged about my experiences with .NET dll hell. Its a new type of DLL hell where certain projects use certain versions of DLLs, and since the DLLs usually have the exact same FILE name, the a newer/older version of a DLL overwrites an older/newer version and one projects references are screwed. A possible remedy are for the NET runtime to embrace something like the Java JAR files... not sure if the .NET runtime supports multiple versions of the same assembly loaded ......

Posted On Monday, October 31, 2005 8:49 AM | Comments (1) |

We need to Force SQL Update and Delete statements to have WHERE clauses.
OK, time and time again, I see this problem. Usually with a junior level SQL developer, and its an honest mistake that I even make on occasion. Right now I'm staring at a SQL table where ALL the values for ALL the rows are exactly the same, which points to an update statement that didnt have a WHERE clause specified. Now I ask, why does SQL allow this behavior? Surely most of the time I wouldn't want to update EVERY row with the exact same values right? ...What was that from the back? Oh, performing ......

Posted On Monday, October 31, 2005 8:38 AM | Comments (0) |

DLL collision hell v2.0 in .NET
Just downloaded the latest NHibernate version from My only concern is the baggage with it, in terms of extra dlls that will have to carry through if the NHibernate.dll is referenced. I suppose an ILMerge is in order, basically at my own leisure. But considering the fact that I might actually have referenced this Castle.DynamicProxy dll in a project in the same solution, I'd get a DLL conflict. In theory, I could simply upgrade my project file to use the same reference to ......

Posted On Sunday, October 30, 2005 1:42 PM | Comments (2) |

VB gets a Using keyword - excellent

So our VB bretheren finally get a Using keyword for the language.  Kudos to the VB team for implementing it 5 years after C#... 

On the flip side, I hope we never see a With keyword in C# ;-)

I'm just glad that the VB guys can now get proper Disposal symantecs with their language.

Posted On Saturday, October 29, 2005 12:10 PM | Comments (2) |

asp:BoundField DataFormatString problem
A new oddity seems to have cropped up after moving our projects from asp v2.0 b2 to asp v2.0 rc1... My gridview's have boundfield's with the DataFormatString set to {0:C}. <asp:gridview runat="server" id="GridView1" width="100%" OnRowDataBound="GridView1_R... autogeneratecolumns="False" cellpadding="6" DataKeyNames="ShoppingCartD... DataSourceID="SqlDataSource1" ><EmptyDataTemplate&g... are no items in the cart.</EmptyDataTemplate... /><Columns><asp... ......

Posted On Wednesday, October 26, 2005 9:42 PM | Comments (47) |

SQL Server service pack 4
Here's a great one for anybody applying the SP4 to SQL Server: Try doing a trace on SQL statements that happen to even vaguely mention “password”... it'll block it! Even if the code is inserting an email that vaguely mentions something about password security... without even saying “the password was [blank].“ Try this sql script, running SQL Profiler: use northwindinsert into customers ( customerid, companyname, contactname )values ( 'PASSW', 'Password Experts', 'The password ......

Posted On Thursday, October 20, 2005 10:54 AM | Comments (0) |

Symbolic and hard links in Vista's NTFS?
It sure would be nice to have those *nix features, and Vista's timeframe could give it the time needed to get those features done... Has somebody created a “sym” for NTFS (i think “sym” is the command to create a link)? It would solve so many directory maintenance problems, like when I try to keep up-to-date on Paul Wilson's ORMapper stuff, it comes as a complete “WilsonDotNetPremium&... that obviously is mapped to his preferred directory structure... with symbolic ......

Posted On Sunday, October 2, 2005 11:56 PM | Comments (4) |

VS.Net Add References dialog bug.
There's a bug with the Add References -> Recent tab... there's no way to update the displayed items... Build an assembly, give it a version number of 1.5Browse to that assembly, and note the version number.Add the reference to a projectRinse, repeat...Now, up the assembly version number: 2.0build the newer assembly.pull up the add references -> recent tab, and note it still says 1.5. ...Basically a minor nit... Can't submit this because my feedback account is blocked? right now ......

Posted On Sunday, October 2, 2005 11:06 PM | Comments (0) |

Powered by: