Open MS Word doc inside IE without poping up Open/Save dialogue
Hello,
I need to open a word document in New(_Blank) IE window on click of asp:hyperlink in my page.
For that I have used javascript to open up the word document in new IE window. But for opening MS Word doc, it is always poping up Open/Save dialogue. I want to directly open the word document inside IE window without asking Open/Save dialogue.
I have to open MS word in New IE window itself.
javascript code
function openMoreDetails(urlpath)
{
window.open(urlpath,'_blank','height=466,width=500,top=20,left=20,status=yes,toolbar=no,menubar=no,l ocation=no,scrollbars=yes,resizable=yes');
}
Aspx.cs page code
lnkMoreDetails.Attributes.Add("onclick", "openMoreDetails('" + FullURLPath + "')");
thankzzzzzzzz
Re: Open MS Word doc inside IE without poping up Open/Save dialogue
If the user has the word browser plugin, then it'll open for them in the browser window. If the user doesn't have the plugin, then it'll give them the save/cancel dialog. This is browser behavior, you can't control it from your application.