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