Response.WriteFile(path);
Response.Clear(); Response.ClearContent(); Response.ClearHeaders(); Response.AppendHeader("content-disposition","attachment; filename=" + name); Response.ContentType = "Application/msword"; Response.WriteFile(path); Response.Flush(); Response.Close(); Response.End();
ScriptManager.GetCurrent(this).RegisterPostBackControl("Your Control id(want to open file dialogue when click)");
<Triggers> <asp:PostBackTrigger ControlID="btnFileUpload"/> </Triggers>
Response.WriteFile
Response.TransmitFile
Flush
Close
End
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)