Cheers
thanks.
not likely it is about the insert logic, it must be something I put there, after many more hours trace, I found the different between insert and edit is
edit ...
aspx.page End LoadComplete 0.0228798135093245 0.000120
aspx.page Begin PreRender 0.0229031048447578 0.000023
Load view:actions by CreateChildControls 0.0230350957452127 0.000132
aspx.page End PreRender 0.0236829083545823 0.000648
insert ...
aspx.page End LoadComplete 0.00836069446527674 0.000120
aspx.page Begin PreRender 0.00838392830358482 0.000023
Load view:actions by CreateChildControls 0.00851705914704265 0.000133
Load admincontrol1:_t2 by CreateChildControls 0.00875884705764712 0.000242
aspx.page End PreRender 0.0100286610669467 0.001270
so for some reason, it reload the control in PreRender, that only happens on insert mode, not edit or readonly mode.
any idea?
Sorry, was away for a while. Is there any difference in the way youspecified the data source of the DDL in those two templates? I cannotsay what is a control t2 without seeing the code but looks like onpostback you controls get re-bound when you are using IntsertTemplate
It took me days to figure that out, it ends up it is a controlparameter I added to the FormView, once I remove it, it works for me. But I didn't check why it worked that way.
No comments:
Post a Comment