Posted on: 9/12/2013 10:16:53 PM | Views : 959

Hi all,
I have a webMethod
[WebMethod] public static void downloadfile(string fileName) { HttpContext.Current.Response.Clear(); HttpContext.Current.Response.ContentType = "Application/text"; HttpContext.Current.Response.AddHeader("Content-Disposition", "attachment; filename=" + fileName); string completeName = Server.MapPath("~/Uploads/") + fileName; HttpContext.Current.Response.TransmitFile(completeName); HttpContext.Current.Response.Flush(); } I need to use this webmethod to dowload file in jquery?

$('.btn-start-job').click(function () ...

Go to the complete details ...