开发者

asynchronous triggers

开发者 https://www.devze.com 2023-02-24 01:55 出处:网络
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 sa

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"?

0

精彩评论

暂无评论...
验证码 换一张
取 消