Hi,
I have a question about AJAX and ASP.Net controls.
I'm working on a system that requires pages to be generated dynamically based on XML to provide the layout (eg text boxes, dropdowns, save button etc) and a dataset to provide the data to populate these fields. I'm tring to do this using composite controls. I would have a control to display a single record (formview), another control to display a grid of records (datasheet), another control for a lookup search etc.
We want to use AJAX so that when the user clicks Save on a formview control, the data will be saved and the formview will be refreshed without refreshing the entire page. The data update is working fine but I can't refresh the control on the page.
The UpdatePanel won't work due to other conflicts in the page lifecycle. I have tried using the Html Request object to call a dummy page containing only the formview control, then stripping out the relevant HTML and assigning it to the innerHTML property of the div containing this control. However, using this approach means that I lose all of the javascript I previously had wired up to the textboxes, buttons etc in the formview control. I had thought that because these elements were already on the page with the same id's the events would continue to work.
Is there a way to cause a server side control to fully refresh itself using AJAX? Or am I attempting to do something that is just not possible?
Thanks.