Hi jas101,
Try
-
<%@ Page Language="C#" AutoEventWireup="True" %>
-
-
<%@ Register Assembly="CuteWebUI.AjaxUploader" Namespace="CuteWebUI" TagPrefix="CuteWebUI" %>
-
<html>
-
-
<script language="C#" runat="server">
-
-
protected void attachment1_FileUploaded(object sender, UploaderEventArgs args)
-
{
-
button1.Enabled = false;
-
}
-
</script>
-
-
<body>
-
<form id="Form1" runat="server">
-
<asp:Button ID="button1" runat="server" Text="upload" />
-
<CuteWebUI:UploadAttachments ID="attachment1" runat="server" OnFileUploaded="attachment1_FileUploaded"
-
InsertButtonID="button1">
-
</CuteWebUI:UploadAttachments>
-
-
</form>
-
</body>
-
</html>
And you can change the maxfileslimit dynamically in codebehind, like.
-
protected override void OnLoad(EventArgs e)
-
{
-
attachment1.MaxFilesLimit = 3;
-
}
Regards,
ken