1stein

Postback after files uploaded by AjaxFileUpload

Oct 21st, 2013
342
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. <ajaxToolkit:AjaxFileUpload runat="server" ID="AjaxFileUpload1"
  2. OnClientUploadComplete="AjaxFileUpload1_OnClientUploadComplete" />
  3.  
  4. <asp:UpdatePanel runat="server" UpdateMode="Conditional" >
  5. <ContentTemplate>
  6. <asp:Button runat="server" ID="hiddenButton" style="display:none;" />
  7. <h2>Panel updated at: <%= DateTime.Now.ToLongTimeString() %></h2>
  8. </ContentTemplate>
  9. </asp:UpdatePanel>
  10.  
  11. <script type="text/javascript">
  12. function AjaxFileUpload1_OnClientUploadComplete(sender, args) {
  13. <%= Page.ClientScript.GetPostBackEventReference(hiddenButton, "") %>;
  14. }
  15. </script>
Advertisement
Add Comment
Please, Sign In to add comment