Re: Limit Number of Uploads

  •  08-29-2008, 12:08 AM

    Re: Limit Number of Uploads

    Dennis Gilgallon,
     
    Hi,
     
    Currently the Uploader do not support this feature directly.
     
    You can use the ctrl.InsertButtonID="MyCustomButton" to implement your request.
     
    (Please check the customize UI demo)
     
    at the OnPreRender event , you can check the count and disable the MyCustomButton like this way :
     
    override protected void OnPreRender(EventArgs e)
    {
        base.OnPreRender(e);
        if(ctrl.Items.Count > 4 )
            MyCustomButton.Enabled=false;
        else
            MyCustomButton.Enabled=true;
    }
     
    Regards , Terry .
View Complete Thread