LINQ in Action roller

How to handle type exception in LINQ Validation rule

Hi I'm trying to re-write Scott's code from VB to C# for his LINQ validation rule. Basically, I have a literal that I'd like to display the validation rule error that is captured. I tried converting it into C# code, but no luck...I think I'm messing up my typeof check. Any thoughts? The error I receive is "Error 1 'System.ArgumentException' is a 'type' but is used like a 'variable' http://weblogs.asp.net/scottgu/archive/2007/07/16/linq-to-sql-part-5-binding-ui-using-the-asp-linqdatasource-control.aspx Read More...
Published Monday, October 06, 2008 1:24 AM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication