Opening doc,docx,Excell files inline of Ie 7.0
<p>Problem :-
I am dealing with doc,.docx,xls,.xlsx, Pdf, files with in a ASP.NET application.,</p>

<p>While I am clicking a button of Gridview, I need to open that file with in IE 6.0/7.0 BROWSER window., Office files like .docx, .doc, .xls, .xlsx , asking for <strong>open and save</strong> .. or Opening out side of the BROWSER. Browser getting close automatically..</p>

<p>But for pdf its working fine..</p>

<p>Code:        Response.Clear();
             Response.ContentType = "application/pdf";
             strFilePath=
             Response.WriteFile(strFilePath);</p>

<p>SAME CODE USED - with the content type of  "application/msword";</p>

<p>But instaed of opening with in browser, its opening out side and automatically, Browser getting closed.</p>

<p>Could you please help me on this.. </p>

<p>Thanks
Karthikeyan</p>
