I have gridview and detailsview controls. The detailsview will be displayed only for the edits of the gridview开发者_运维知识库. My detailsview is in an update panel and it will be displayed on the same page.
I have a button inside the detailsview. When the button is clicked the itemcommand doesn't trigger and moreover, it causes a full post back. My page gets refreshed and I lose the data from the detailsview and only gridview is displayed. Any ideas for overcoming it?
Thanks
Regarding the full-postback problem, have you tried to use ScriptManager.RegisterAsyncPostBackControl(Control control)
passing the button as "control"?
精彩评论