In this article you saw how to update the data of a
secondary data source by using AJAX to call an ASP.NET page, perform updates to
the data store of the secondary data source, and return XML data to the InfoPath
form to trigger a refresh of the data in the secondary data source.
While there are different ways to update data within a
secondary data source, this technique offers the following benefits:
1.
It can be used with any web technology that is able to perform an update
to the underlying data store of a secondary data source in InfoPath and then
return XML data, including classic web technology such as e.g. Active Server
Pages.
2.
It makes use of the asynchronous nature of AJAX to automatically refresh
the data in the secondary data source after the update has been completed, making
it ideal for situations in which code might take a long time to run when
performing an update.