For example, if I wanted to change the UpdateTarget or the InsertionMode in the controller after the form was posted.
+1
A:
Controller has no information where and how calling JavaScript code is going to insert controller's result into the page. So controller is unable to change it.
Alexander Prokofyev
2009-11-05 06:02:07
+2
A:
You can work around this by not setting updatetargetid and insertmode, instead you just need to use onsuccess and oncomplete event, and then when the controller return the value back, you just need to add the targetid and insertmode into the return data (i.e json), then in your function of handling return result, you just need to read these values.
tuanvt
2009-11-05 10:55:14