Solved

disabling AjaxFileUpload

Posted on 2013-11-22
3
337 Views
Last Modified: 2013-12-05
I searched everywhere and no luck. Is it possible to disable AjaxFileUpload.  I use the ajaxUpload1_OnUploadComplete event.  I let user upload file and I attached username in front of the file at upload time.  However if user goes direct to upload I want to disable it when no username entered.  enable = false on ajaxUpload1 does not do anything.  If I start it invisible and turn it on after user name is entered, it does not work, because it is not recognized since it started out invisible.

So anyway I can disable this component and yet leave it on screen?
Thanks
0
Comment
Question by:CPOINT2000
  • 2
3 Comments
 
LVL 83

Expert Comment

by:CodeCruiser
Comment Utility
>If I start it invisible and turn it on after user name is entered, it does not work, because it is not recognized since it started out invisible.

Instead of setting visible to false, which would not render the control at all, hide it using CSS i.e. display:none
0
 

Author Comment

by:CPOINT2000
Comment Utility
Do I apply CSS on the control itself? Ajaxupload seems to be composed of several components.  If I disable, it still lets me drag files into it's box and the botton does still function.  Thats why I was trying to make it invisible.  But is there an example of How I would apply display:non and turn it back on at run time.
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
Comment Utility
Do you drag it as a single control to your form?

You can also put it in a panel control and then set that to display:none
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now