On Oct 2, 8:21 pm, "Mufasa" <j...@nowhere.comwrote:
Is there a way to have a link in IE that will automatically run the saveas
command instead of trying to open the file?
TIA - Jeff.
Hi Jeff
you can do it using code. For example, you can have a LinkButton with
the following code in it
protected void LinkButton1_Click(object sender, EventArgs e)
{
Response.ClearContent();
Response.ClearHeaders();
Response.AddHeader("Content-Disposition",
"attachment;filename=test.doc");
Response.WriteFile(Server.MapPath("~/test.doc"));
Response.Flush();
Response.Close();
}