Hi.
I have saved word documents in my application folder. how do i open them on button click?
i have used the following code.But it is opening in the same browser :
Response.Append Header("Content-Type", "applicatio n/msword");
Response.Clear( );
Response.Conten tType = "applicatio n/msword".ToStrin g();
Response.AddHea der("Content-Disposition", "inline;filename=" + txtUName.Text + ".doc");
Response.Charse t = "";
this.EnableView State = false;
Response.WriteF ile("E:\\TEACHE R\\Resumes\\" + txtUName.Text + ".doc");
Response.End();
I have tried using "attachment " instead of "inline" to open it as an attachment. But failed to do so...
could anyone help?????
Thanks a lot!!!!!
I have saved word documents in my application folder. how do i open them on button click?
i have used the following code.But it is opening in the same browser :
Response.Append Header("Content-Type", "applicatio n/msword");
Response.Clear( );
Response.Conten tType = "applicatio n/msword".ToStrin g();
Response.AddHea der("Content-Disposition", "inline;filename=" + txtUName.Text + ".doc");
Response.Charse t = "";
this.EnableView State = false;
Response.WriteF ile("E:\\TEACHE R\\Resumes\\" + txtUName.Text + ".doc");
Response.End();
I have tried using "attachment " instead of "inline" to open it as an attachment. But failed to do so...
could anyone help?????
Thanks a lot!!!!!
Comment