问题
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