Re: Customize Validation Error Dialog

  •  10-14-2011, 7:18 AM

    Re: Customize Validation Error Dialog

    Hi hemantp,
     
    Yes, you can use the same way to custom the file too large message.
     
    Try the example below
     
    <%@ Page Language="C#" %>

    <%@ Register Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" TagPrefix="CuteWebUI" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <script runat="server">
        protected override void OnLoad(EventArgs e)
        {
            uploader1.ValidateOption.MaxSizeKB = 10;
            uploader1.FileTooLargeMsg = "file too large";
            base.OnLoad(e);
        }
    </script>

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title>example</title>
    </head>
    <body>
        <form id="form1" runat="server">
            <CuteWebUI:UploadAttachments ID="uploader1" runat="server">
            </CuteWebUI:UploadAttachments>
        </form>
    </body>
    </html>
     
    Regards,
     
    Ken
View Complete Thread