ASP.NET 2.0
I am trying to open a Word document and Excel document from a dialog web
page, what's the best way to do that?
I have tried the following:
Response.Clear( );
Response.AddHea der("Content-Disposition", "attachment ; filename=" +
file.Name);
Response.AddHea der("Content-Length", file.Length.ToS tring());
Response.Conten tType = "applicatio n/octet-stream";
Response.WriteF ile(file.FullNa me);
Response.End();
but I am getting the following error message.
Unable to evaluate expression because the code is optimized or a native
frame is on top of the call stack.
Thank You
Peter
I am trying to open a Word document and Excel document from a dialog web
page, what's the best way to do that?
I have tried the following:
Response.Clear( );
Response.AddHea der("Content-Disposition", "attachment ; filename=" +
file.Name);
Response.AddHea der("Content-Length", file.Length.ToS tring());
Response.Conten tType = "applicatio n/octet-stream";
Response.WriteF ile(file.FullNa me);
Response.End();
but I am getting the following error message.
Unable to evaluate expression because the code is optimized or a native
frame is on top of the call stack.
Thank You
Peter
Comment