Last post Feb 14, 2014 01:18 PM by Nono32
May 18, 2007 10:08 AM|ASPCloud|LINK
I am currently loading page content dynamically from database, which means all controls like textboxes, labels and drop down are not at a fixed location on the page.
I am using Formview which I only learned a few days ago, documentation saids FormView allow 2 way binding, so when user updated the data on FormView, it is updated automatcially into the database, by calling one of the update method in the Business Logic
I have got the FormView working for fixed controls on the web pages. But how do you build the EditItemTemplate and the InsertItemTemplate dynamically loading the controls required? The big question is DataBinder seems to only have Eval method (one way),
but no Bind method (two way)
I can load the controls to a page, and build a FormView using Business Logic Layer, but do not know how to merge the two together, which is dynamically building the 3 templates in FormView which has 2 way binding to a table or table(s)
Thanks for any comments in advance.
Global DataSet DataView GridView Paging
object data source
May 22, 2007 04:10 AM|Kevin Yu - MSFT|LINK
To modify the template, you will need to modify the FormView.EditItemTemplate property. You can use any object that implements the ITeamplate interface. For more information, please check
Feb 14, 2014 01:18 PM|Nono32|LINK
doesn't give any more info which helps answers the initial problem.
It's just a useless help page which is the result of a lazy work from lazy Microsoft documentation people. Shame.