G
Guest
Hello
I've a .NET HTTP Handler that retrives binary files stored on a SQL Server
database.
Passing some ID to the HTTP Handler it reads from the database and
constructs a HTTP message that
send back to the client the requested file.
To force, on client browser, the opening of the donwload window where is
asked if the user wants
to open on site or to sav the file i use a HTTP header that i found in your
pages:
Response.ContentType = "application/octet-stream"
Response.AddHeader("Content-Disposition", "attachment; filename=""" &
some_file_name & """")
In fact this does work making the client browser opens the dialog box that
asks to open or save the file.
My problemis that when i choose Open instead of save, the browser sends back
the error message of
"file not found"
How can I force the opening of that DialogBox window but maitaining the
funcionallity of open on site?!?
Can you help me here?!?!
best regards
Jorge Ribeiro
I've a .NET HTTP Handler that retrives binary files stored on a SQL Server
database.
Passing some ID to the HTTP Handler it reads from the database and
constructs a HTTP message that
send back to the client the requested file.
To force, on client browser, the opening of the donwload window where is
asked if the user wants
to open on site or to sav the file i use a HTTP header that i found in your
pages:
Response.ContentType = "application/octet-stream"
Response.AddHeader("Content-Disposition", "attachment; filename=""" &
some_file_name & """")
In fact this does work making the client browser opens the dialog box that
asks to open or save the file.
My problemis that when i choose Open instead of save, the browser sends back
the error message of
"file not found"
How can I force the opening of that DialogBox window but maitaining the
funcionallity of open on site?!?
Can you help me here?!?!
best regards
Jorge Ribeiro