LinkButton postback problem inside custom WebControl

流过昼夜 提交于 2019-12-13 03:24:59

问题


I've given up trying to find a solution to this.
My page has a ModalPopupExtender that shows an asp:Panel with my custom WebControl inside it.
My custom WebControl contains only a LinkButton and is inside an UpdatePanel.

The problem is that, when clicked, the LinkButton it is reloading the entire page.

With a regular input Button, this does not happen. The LinkButton refuses to work as expected and reloads the entire page :(
If I use the LinkButton alone inside the UpdatePanel (not inside my custom WebControl) everything works fine.

What am I doing wrong?!?
Please, any help would be greatly appreciated!

Thanks in advance,
Felipe


回答1:


The answer is here.

Please register LinkButton as AsyncPostBack control.



来源:https://stackoverflow.com/questions/511445/linkbutton-postback-problem-inside-custom-webcontrol

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!