Geeks With Blogs

The Wrecking Bawl Destructuring query language, one keyword at a time. February 2009 Entries
tinyint surprise
I just discovered something rather surprising. If you return a tinyint from a stored procedure as part of a dataset, and bind that dataset to a dataview, and then do something like this: <asp:Label runat="server" id="statusLabel" Text='<%# GetStatusText( (int)DataBinder.Eval(Contai... "DataItem.status")) %>'> </asp:Label> You will get an error about an invalid cast. If the stored procedure returns an int instead of tinyint, it works just fine. How can ASP.Net 3.5 not be able to ......

Posted On Tuesday, February 10, 2009 1:05 PM

resharper clean-up gotcha
Be careful when using Cleanup Code on a web solution in Visual Studio.  It may change the Inherits string in your Global.asax file in order to remove unnecessary namespaces, which apparently are actually necessary for the site to start up.

Posted On Tuesday, February 3, 2009 7:34 AM

Copyright © Alex Bransky | Powered by: