Solved

disabling AjaxFileUpload

Posted on 2013-11-22
3
340 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
ID: 39671562
>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
ID: 39685251
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
ID: 39686289
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

jQuery is a JavaScript library that greatly simplifies JavaScript programming. AJAX is an acronym formed from "Asynchronous JavaScript and XML."  AJAX refers to any communication between client and server, when the human client does not observe a…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

867 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

18 Experts available now in Live!

Get 1:1 Help Now