Build the Formview EditItemTemplate dynamically RRS feed

  • Question

  • User-455010333 posted


    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 Layer.

    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.


    Friday, May 18, 2007 10:08 AM

All replies