hello,
This might help you,
http://encosia.com/2007/07/13/easily-refresh-an-updatepanel-using-javascript/
Thanks,
Deepesh Verma
This is what you do..
1) Create a hidden button inside your UpdatePanel:
<asp:ButtonOnClick="MyOnClickMethod"ID="hiddenButton"CssClass="nodisplay"runat="server"Text=""/>
2) Create an Async Trigger within the Update Panel extended properties:
<Triggers>
<asp:AsyncPostBackTriggerControlID="hiddenButton"/>
</Triggers>
3) Target your button on Javascript with the buttons' click property:
function clickpanel() {
$get(hiddenButton).click();
}
No comments:
Post a Comment