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...