Saturday, March 24, 2012

Why save dialog displaying twise

Hi all,
Dim a As String = Response.ContentType
Response.Clear()
Response.Buffer = True
Response.ContentType = "application/msword"
Response.AddHeader("content-disposition", "attachment;
filename=Document.doc")
Response.Write(strDoc)
Response.ContentType = a
Response.End()

I'm writing this code in ASP.NET I'm getting download dialog box but I'm
getting twise if I clicked on open.

My purpose is I want to download a worddocument from server and also need to
write some string in that document.

Open is only opening MSWord window but not opening document.

Does any one know solution to this problem.. please post

Thank you,
Vijay NeelamInternet Explorer Prompts the User with Two Open or Save Dialog Boxes

http://support.microsoft.com/?id=238588

"Vijay Neelam" <vijay_neelam@.hotmail.com> wrote in message
news:uuIwUkrnDHA.1764@.tk2msftngp13.phx.gbl...
> Hi all,
> Dim a As String = Response.ContentType
> Response.Clear()
> Response.Buffer = True
> Response.ContentType = "application/msword"
> Response.AddHeader("content-disposition", "attachment;
> filename=Document.doc")
> Response.Write(strDoc)
> Response.ContentType = a
> Response.End()
> I'm writing this code in ASP.NET I'm getting download dialog box but I'm
> getting twise if I clicked on open.
> My purpose is I want to download a worddocument from server and also need
to
> write some string in that document.
> Open is only opening MSWord window but not opening document.
> Does any one know solution to this problem.. please post
> Thank you,
> Vijay Neelam

0 comments:

Post a Comment