Johnny Code
Fear no code

Property

ASP.NET C# DataBinding requires properties, not fields.

By John Bubriski on March 13, 2010

As the title of his post states, you can’t reference fields when using ASP.NET’s data binding syntax. If you try it, you will get a runtime exception that looks something like this: DataBinding: ‘MyDataClass‘ does not contain a property with the name ‘MyProperty‘. Description: An unhandled exception occurred during the execution of the current web [...]

Posted in Programming | Tagged ASP.NET, C#, Data Binding, Field, Property | Leave a response

About Me

I'm a Software Engineer at Worcester Envelope in Auburn, MA. Check out the About page to learn more about me.
Follow @JohnBubriski

Pages

  • About Me
  • Achievements!
  • Contact Me
  • Developer Resources
  • Kentico Resources
    • Kentico Tips and Tricks
    • Settings Module for Kentico CMS

Tags

.NET Framework AES ASP.NET ASP.NET MVC ASP.NET Web API AspDotNetStoreFront blogging C# Code Code Camp Cryptography Decryption Elmah Encryption Entity Framework Exceptions Extension Method HTML IIS IIS6 javascript jQuery JSON Kentico API Programming Kentico BizForms Kentico CMS Kentico Event Log Kentico Module Development Learning Python 3 Microsoft PHP Productivity Quick Tip REST Shortcuts SQL SQLite Development Symmetric Encryption Time Saver Travian Add On Project URL Routing Using PyGame Visual Studio web-service wordpress

Archives

  • 2012 (15)
  • 2011 (11)
  • 2010 (19)
  • 2009 (11)

Programming Blogs

  • Stack Overflow
  • Coding Horror
  • Code: Impossible
  • Self Elected
  • Chris Jenning's Blog

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org

Copyright © 2012 Johnny Code.

Powered by WordPress and Hybrid.

Maintained by John Bubriski