Multi ajax file upload based on dropdown selection asp.net

AustinOwnz~

New Member
Based on dropdown i'm getting value and need to use for ajax file upload, now the problem is that i'm getting value properly, i'm using two ajax file upload(ajaxUpload1_OnUploadComplete & ajaxUpload2_OnUploadComplete), whenever i click the upload control for uploading files from the both the control goes to one upload method(ajaxUpload1_OnUploadComplete) only for uploading files. I need a solution for this. Thanks in advance.In .cs\[code\]protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) { Session["Value"] = DropDownList1.SelectedItem.Text; }protected void ajaxUpload1_OnUploadComplete(object sender, AjaxControlToolkit.AjaxFileUploadEventArgs e) { String value = http://stackoverflow.com/questions/14472739/Session["Value"].ToString(); } protected void ajaxUpload2_OnUploadComplete(object sender, AjaxControlToolkit.AjaxFileUploadEventArgs e) { String value1 = Session["Value"].ToString(); }\[/code\]In .aspx\[code\] <asp:AjaxFileUpload ID="AjaxFileUpload1" AllowedFileTypes="jpg,jpeg" MaximumNumberOfFiles="10" ThrobberID="1" ContextKeys="1" OnUploadComplete="ajaxUpload1_OnUploadComplete" runat="server"/> <asp:AjaxFileUpload ID="AjaxFileUpload2" AllowedFileTypes="jpg,jpeg" ThrobberID="2" MaximumNumberOfFiles="10" ContextKeys="2" OnUploadComplete="ajaxUpload2_OnUploadComplete" runat="server" />\[/code\]
 
Back
Top