We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Visible

I'm trying to use uploadbox.
I put it on my page but it's not visible.

Am I missing some script or style?

this is bundle:

 bundles.Add(New ScriptBundle("~/bundles/MsAjaxJs").Include(
                "~/Scripts/WebForms/MsAjax/MicrosoftAjax.js",
                "~/Scripts/WebForms/MsAjax/MicrosoftAjaxApplicationServices.js",
                "~/Scripts/WebForms/MsAjax/MicrosoftAjaxTimer.js",
                "~/Scripts/WebForms/MsAjax/MicrosoftAjaxWebForms.js"))

            bundles.Add(New ScriptBundle("~/bundles/WebFormsJs").Include(
                        "~/Scripts/WebForms/WebForms.js",
                        "~/Scripts/WebForms/WebUIValidation.js",
                        "~/Scripts/WebForms/MenuStandards.js",
                        "~/Scripts/WebForms/Focus.js",
                        "~/Scripts/WebForms/GridView.js",
                        "~/Scripts/WebForms/DetailsView.js",
                        "~/Scripts/WebForms/TreeView.js",
                        "~/Scripts/WebForms/WebParts.js"))

            ScriptManager.ScriptResourceMapping.AddDefinition("respond", New ScriptResourceDefinition() With {
                .Path = "~/_COMMON/Scripts/ej/respond.min.js",
                .DebugPath = "~/_COMMON/Scripts/ej/respond.js"})

            bundles.Add(New StyleBundle("~/_COMMON/Styles/ej/flat-saffron/Syncfusioncss").Include(
                            "~/_COMMON/Styles/ej/gradient-lime/ej.web.all.min.css", New CssRewriteUrlTransformWrapper()))


            bundles.Add(New StyleBundle("~/_COMMON/Styles/css").Include(
                        "~/_COMMON/Styles/grawe.css",
                        "~/_COMMON/Styles/jquery-ui.css",
                        "~/_COMMON/Styles/ej/bootstrap.css",
                        "~/_COMMON/Styles/ej/Site.css",
                        "~/_COMMON/Styles/EjGridToolbar.css",
                        "~/_COMMON/Styles/modalPopLite.css",
                        "~/_COMMON/Styles/sweetalert.css",
                        "~/_COMMON/Styles/toastr.css"
            ))
            bundles.Add(New ScriptBundle("~/bundles/Scripts/Library").Include(
                        "~/_COMMON/Scripts/grawe.js",
                        "~/_COMMON/Scripts/jquery-3.1.1.min.js",
                        "~/_COMMON/Scripts/jQuery.UI.block.js",
                        "~/_COMMON/Scripts/jquery-ui.js",
                        "~/_COMMON/Scripts/jsrender.min.js",
                        "~/_COMMON/Scripts/ej/ej.widget.all.min.js",
                        "~/_COMMON/Scripts/ej/cultures/ej.culture.hr-HR.min.js",
                        "~/_COMMON/Scripts/accounting.min.js",
                        "~/_COMMON/Scripts/global.js",
                        "~/_COMMON/Scripts/moment-with-locales.js",
                        "~/_COMMON/Scripts/sweetalert-dev.js",
                        "~/_COMMON/Scripts/es6-promise.auto.min.js",
                        "~/_COMMON/Scripts/toastr.min.js"
            ))


aspx: 

<ej:UploadBox ID="matIMG" runat="server" SaveUrl="saveFiles.ashx" AutoUpload="false">
                                       </ej:UploadBox>

3 Replies

KV Karthikeyan Viswanathan Syncfusion Team January 26, 2017 07:12 AM UTC

Hi Hrvoje Voda,    
  
Thanks for contacting Syncfusion support.   
 
 You have added enough scripts and styles into bundle. Please ensure once whether the scripts and styles are loaded or not by using browser developer tools. And also ensure the bundle is initialized into asp:ScriptManager. And share the details on this. If you need server side action , you will need to add ej.webform.js script file into your project. 
  
Regards,    
Karthikeyan V.  



HV Hrvoje Voda January 26, 2017 07:48 AM UTC

Bundle is working fine.
I added ej.webform.js but It still doesn't work.



KV Karthikeyan Viswanathan Syncfusion Team January 27, 2017 09:20 AM UTC

Hi Hrvoje Voda,     
   
Thanks for your reply.    
  
 We have prepared sample for uploadbox with Syncfusion script and style bundles.  
 
 
We suspect that assemblies may be not an initialized. Try the below code snippet and register the assembles. 
<code> 
Aspx page 
 
<%@ Register Assembly="Syncfusion.EJ.Web" Namespace="Syncfusion.JavaScript.Web" TagPrefix="ej" %> 
</code> 
 
 
Otherwise still you have a rendering issue please revert us the sample as an issue reproducible one or provide your own sample. 
   
Regards,     
Karthikeyan V. 


Loader.
Live Chat Icon For mobile
Up arrow icon