在下一个窗口中显示Word文件 [英] display word file in next window

查看:73
本文介绍了在下一个窗口中显示Word文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在下一个窗口中打开word,excel或ppt文件.当我单击它时,请我保存然后在Google chrome中打开,但我直接想打开..

I want to open word,excel or ppt file open in next window. when i click it ask me to save then open in google chrome but i directly want to open..

protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
  {

      if (e.CommandName.Equals("view"))
      {
          int index = System.Convert.ToInt32(e.CommandArgument);
          Label l1 = (Label)GridView1.Rows[index].FindControl("Label1");
          Label title = (Label)GridView1.Rows[index].FindControl("Label3");
          ScriptManager.RegisterStartupScript(this, typeof(string), "OPEN_WINDOW", "window.open('" + l1.Text + "', null, 'height=500,width=500,status=yes,toolbar=no,menubar=no,location=no');", true);

      }
  }


请帮我...

问候...
Mitesh


please help me...

Regards...
Mitesh

推荐答案

它是浏览器的安全功能.

它们的主要动机是,仅当用户希望对文档进行下载时,才应下载该文档,然后再通过防病毒软件进行扫描,然后再将其打开.

这样可以防止Office宏在打开时直接执行,该宏可能包含宏病毒
Its the security feature of the browsers.

The main motive behind them is that , the document should be downloaded only if the user wants it to be -then scanned by antivirus and then it should be opened.

This prevents the Office macros to be executed directly on opening which can contain the Macro viruses


这篇关于在下一个窗口中显示Word文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆