DataMap - Binding for WebForms

DataMap - Binding for WebForms

Old forum URL: forums.lhotka.net/forums/t/8678.aspx


DaveMcD posted on Wednesday, March 17, 2010

The "Expert VB 2008" book says on page 487 says the DataMap "is designed specifically to suppost Web Forms databinding, and in that model the names of the UI elements and the object properties must match"

Can someone point me to an example of how this is done?

(The methods AddFieldToPropertyMapping and AddPropertyToFieldMapping seem to indicate that this mapping must be explicit rather than relying on matching names.)

 

 

RockfordLhotka replied on Wednesday, March 17, 2010

The book includes a chapter showing how to build a web app, and the PTWeb project includes that code.

The methods you refer to are for more advanced scenarios, usually when building services, when the mapping isn't simple property-to-property based on the inferred property names. While you can use those concepts in a web app, you usually don't need to.

Copyright (c) Marimer LLC