ujjwal uniyal 0 Newbie Poster

Hi,

My AsyncFileUpload is not working at all.

When I amclicking on the Select file button nothing is happening.

It isn't letting me select any file. However if i am setting UploaderStyle to Traditional then it is working fine.

My .aspx code is -

<div>
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">


<asp:AsyncFileUpload ID="AsyncFileUpload1" runat="server" UploaderStyle="Modern" CompleteBackColor="White" UploadingBackColor="#CCFFFF" ThrobberID="imgLoader" onuploadedcomplete="AsyncFileUpload1_UploadedComplete" />


<asp:Image  runat="server" ID="imgLoader" ImageUrl="~/Images/upload.gif"/>
</div>

And .cs code is -

protected void AsyncFileUpload1_UploadedComplete(object sender, AjaxControlToolkit.AsyncFileUploadEventArgs e)
{


string filename = AsyncFileUpload1.FileName;
AsyncFileUpload1.SaveAs(Server.MapPath("Uploads/") + filename);
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.