Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
285
WebUpload control is not working properly?
posted

HI

I am using WebUpload Control but it is not working properly. 

When I made WebUpload.Enabled = false it's not getting disabled.

When I made WebUpload.Visible = false on server side it's working but once is visible false, on making WebUpload.Visible = true on server side it remains false and I am not able to view the control.

If anybody know this issue, kindly guide me.

Thanks

 

Parents
No Data
Reply
  • 19693
    posted

    Hello sheeeraz001 ,

    Thank you for your interest in WebUpload.

    The WebUpload control depends on the following NetAdvantage™ for ASP.NET widgets – igButton igBrowseButton, igProgressBar and the ajaxQueue plugin. These widgets are included with the WebUpload control so you have them available by default.

    http://help.infragistics.com/NetAdvantage/ASPNET/2011.1?page=WebUpload_Known_Issues.html

    In this situation I guess that you are trying to disable the igBrowseButton.

    This can be done in the below way:

    <link href="ig_ui/themes/ig/jquery.ui.custom.css" rel="stylesheet" type="text/css" />

        <link href="ig_ui/themes/base/ig.ui.min.css" rel="stylesheet" type="text/css" />

        <script src="ig_ui/js/jquery-1.4.4.min.js" type="text/javascript"></script>

        <script src="ig_ui/js/jquery-ui.min.js" type="text/javascript"></script>

        <script src="ig_ui/js/min/ig.ui.min.js" type="text/javascript"></script>

        <script type="text/javascript">

            $(window).load(function () {

                $("#igUpload1_ibb").igBrowseButton('option', 'disabled', true);

                $("#igUpload1_ibb").igBrowseButton('option', 'labelText', 'DisabledButtonText');

            })

        </script>

     

     

    <ig:WebScriptManager ID="WebScriptManager1" runat="server">

        </ig:WebScriptManager>

        <ig:WebUpload ID="igUpload1" runat="server">

        </ig:WebUpload>

    Let us know if you have further questions.

Children