Ransonfnkubn
New Member
\[code\] protected void UploadComplete(object sender, AjaxControlToolkit.AjaxFileUploadEventArgs e) { if(Session["Folder"]!="") { pa = Server.MapPath("../Admin/Images/Portfolio/" + Session["Folder"] + "/PortfolioImages/") + e.FileName; AjaxFileUpload1.SaveAs(pa); } else { //Breaking condition }}\[/code\]i want to break it as it does find Session["Folder"] empty but the loop continues to show success message now i want to add any breaking event to break ajaxcontroltoolkit event in "else" condition