Geeks With Blogs

News
Welcome to my blog.
Here's what we've got on the menu today:

Lorin Thwaits A geek says what?

Consider this common construct that you and I have thrown into ASPX pages for years now:

<%# DataBinder.Eval (Container.DataItem, "EmployeeID") %>

In .NET 3.5.1 and older it returns -- tada -- a string.  No mystery there.  But in .NET 4.0 it returns the same type as the underlying data type -- which in this case for me was a nullable int.  Interesting, no?

Posted on Sunday, March 21, 2010 7:39 PM ASP.NET | Back to top


Comments on this post: Interesting Type difference in .NET 4.0 when using DataBinding

# re: Interesting Type difference in .NET 4.0 when using DataBinding
Requesting Gravatar...
Very Interesting,Thanks sharing
Left by ugg on Mar 31, 2010 3:11 AM

# re: Interesting Type difference in .NET 4.0 when using DataBinding
Requesting Gravatar...
How did you figure this out?
Left by Travel Makeup Mirrors on May 31, 2010 10:09 PM

# re: Interesting Type difference in .NET 4.0 when using DataBinding
Requesting Gravatar...
Owning some brands is the proud of women. The fashionable accessories.brand name handbags are good choice.
Left by fashionable accessories on Aug 21, 2010 1:47 AM

Your comment:
 (will show your gravatar)


Copyright © Lorin Thwaits | Powered by: GeeksWithBlogs.net