Open word, excel, ppt in window with out save
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); } }please help me...
Regards...
Mitesh