I use that control quite a bit.
the simple css rule can be applied here:
If a div or element has BOTH a ID and class? You are in luck, since in css you can then use the "ID" selector, and that will ALWAYS over ride the class!. and that is what we want.
There are two elements. The drop zone. So, you can get dashed lines and a color with this:
<style>
#AjaxFileUpload1_Html5DropZone
{
border:4px;color:black;border-color:black;border:dashed;background-color:deepskyblue
}
</style>
<ajaxToolkit:AjaxFileUpload ID="AjaxFileUpload1" runat="server" OnClientUploadStart="MyUpLoadStart" />
NOTE very close in above - we don't specify a class - but the actual control ID - and thus it will over-ride existing class. The above is for the drop zone, and thus we get this:
However, if you want the dashed line for the whole box, then use this:
<style>
#AjaxFileUpload1_ctl00
{
border:4px;color:black;border-color:black;border:dashed;background-color:deepskyblue
}
</style>
<ajaxToolkit:AjaxFileUpload ID="AjaxFileUpload1" runat="server" OnClientUploadStart="MyUpLoadStart" />
And we get this:
So, in place of a css class selector, you can use one of the above two control ID for the div. This will get you the dashed-line for that div.
Regards,
Albert D. Kallal (Access MVP 2003-2017)
Edmonton, Alberta Canada