Hi krajiv23,
The uploader has not the property to check the states, so you can add a variable to check it between the upload progress, like the example below.
- <%@ Page Language="C#" %>
-
- <%@ Register TagPrefix="CuteWebUI" Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" %>
- <!DOCTYPE html>
-
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head runat="server">
- <title>example</title>
- </head>
- <body>
- <form id="form1" runat="server">
- <div>
- <CuteWebUI:Uploader runat="server" ID="uploader1" >
- </CuteWebUI:Uploader>
- <asp:Button ID="btnPostBack" runat="server" Text="post back" OnClientClick="return postback()" />
- </div>
- </form>
- </body>
- </html>
-
- <script type="text/javascript">
- var finish=null;
- function CuteWebUI_AjaxUploader_OnStart()
- {
- finish=false;
- }
- function CuteWebUI_AjaxUploader_OnTaskComplete(task)
- {
- finish=true;
- }
- function postback()
- {
- if(finish==false)
- {
- alert("wait upload is in progress.");
- return false;
- }
- }
- </script>
Regards,
Ken