开发者

Events doesn't fire when using UpdatePanel

开发者 https://www.devze.com 2023-01-02 21:06 出处:网络
What I did is, I have made 2 user controls. One control is inside the other. NoW one control has a buttton and a data grid and datalist in it. When pressing button I am filling datagrid while datalis

What I did is, I have made 2 user controls. One control is inside the other.

NoW one control has a buttton and a data grid and datalist in it. When pressing button I am filling datagrid while datalist visiblity false. This is working fine. But now when I press some link button in datalist data, i开发者_运维问答t should call item_command event but it is not calling.

I have also used a Updatepanel as a wrapper(all controls are inside it).

Please suggest what may be the reason for that.

Thanks


Set the enablePartialRendering to False of the ScriptManager like this

<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="false">

0

精彩评论

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