Hi all, I am providing functionality on an ASP.NET page to download word documents. I can get this functionality working with the following C# code: private void CheckOut() { _planController.CheckOut(plan, UserHelper.CurrentUser); string documentPath = PlanController.GetFullDocumentPath(plan); Response.ContentType = "application/msword"; Response.AddHeader("content-disposition", "attachment; filename=" + documentPath); Response.TransmitFile(documentPath); Response.End(); } I use the following javascript on the client: function checkOut(planUid){ startWorking(); var url = plansUrl + "?action=checkout&uid=" + planUid; window.frames['downloadframe'].window.location.replace(url); loadPlans(); } As you can see, I am replacing the location of the iframe. All well and good so far. The question I have is, how can I do this without posting back to the server? I want to do download the file without a postback. In most of my other calls I am either setting the innerhtml of a DOM element or I am manipulating JSON to render the results. Is there anything I can do with the above scenario to stop postbacks. Cheers [EMAIL PROTECTED] _________________________________________________________________ 100’s of Music vouchers to be won with MSN Music https://www.musicmashup.co.uk =================================== This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com