Last post Sep 12, 2009 07:38 AM by pbcclements
Sep 10, 2009 05:20 PM|pbcclements|LINK
I've a question regarding updating a linq datasource . I have a datasource against one table that is used on several formviews on the same page (each formview is housed on a separte tab).
My question is this - each formview uses the one datasource, but how can I apply a single update to the datasource - i.e. let the user move around the formviews on separate tabs, then hit update and save the changes.
At the moment, I have an update button on each tab - interestingly, the button fires an updating method for each formview, but only the data on the formview that the button is on actually gets updated.
Hope this makes sense - if not my appologies - I've posted a few queries on dynamic data recently, but, standing back, I think that using it will have saved me 20% + time on a four month project.
Thanks to all
Sep 11, 2009 05:33 AM|sjnaughton|LINK
Hi Peter, I don't think you can as each formView will cause the DataSource to save to the DB. I would look for another way to do this:
Sep 11, 2009 04:39 PM|pbcclements|LINK
Thanks again for your response to my post. I've spent a lot of today looking at the methods to achieve your option (1), and I must say it seems quite problematic - just identifying each bound datacontrol on each tab, the controls type and the actual value
you want to hold in the db seems quite tricky. Tomorrow I'm going to look at option (2) which from a dynamic data point of view, does see a better solution - spreading formviews accross ajax tabs does seem to have inherent problems, essentially concerning
the binding and data update. No worries, neccessity being the mother of invention,I'm sure a solution is not far off.
Many thanks for your much valued input.
Sep 12, 2009 07:38 AM|pbcclements|LINK
Hi just a footnote on this one as my experiences might be useful to others - I've been working on maintaining a wide table, split accross tabs - I started using server side ajax tabs, but have this morning quickly and effectively implemented a solution based