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?

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Feedback

# re: Interesting Type difference in .NET 4.0 when using DataBinding

Very Interesting,Thanks sharing 3/31/2010 3:11 AM | ugg

# re: Interesting Type difference in .NET 4.0 when using DataBinding

How did you figure this out? 5/31/2010 10:09 PM | Travel Makeup Mirrors

# re: Interesting Type difference in .NET 4.0 when using DataBinding

Yeah thanks for the update. Qingdao 6/4/2010 2:53 AM | Joe

# re: Interesting Type difference in .NET 4.0 when using DataBinding

Owning some brands is the proud of women. The fashionable accessories.brand name handbags are good choice.
8/21/2010 1:47 AM | fashionable accessories

Post a comment





 

 

News


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

Tag Cloud


Article Categories

Archives

Post Categories

Image Galleries

Syndication: