Robert Vuković
Robert Vuković

Reputation: 4688

ASP.NET WebForms Data Binding Solutions

I am looking for some easy to use data binding to forms controls. Something that will handle formatting, validation and error handling, something that will handle filling controls from business object/DTOs and vice versa with minimal code. I did use google and have found these two links:

I am curios if there is something newer and more complete.
Are you using FormView or manualy fill controls and variables or something else?

Upvotes: 2

Views: 2003

Answers (1)

JC.
JC.

Reputation: 175

I have always used the standard asp.net DetailsView/FormsView controls along with either SqlDataSource or ObjectDataSource controls to accomplish what you are trying to do. This will allow you to do two-way data binding and with a small amount of coding with template fields you can add validation and formatting.

Take a look at http://quickstarts.asp.net/QuickStartv20/aspnet/doc/ctrlref/data/formview.aspx for more information.

Upvotes: 1

Related Questions