G
Guest
I created a sample aspx page with a server side Button Control. OnClick event of Button streams an excel file to the client via the following code..
response.Buffer =true
response.Charset = ""
response.ContentType = "application/vnd.ms-excel";
response.AppendHeader("Content-Disposition", "attachment;filename=sample.xls")
response.Write(data)
If the above page is accessed and button is clicked, IE browser throws up TWO Open/Save Dialog boxes.
If i change the "form" attribute "method" to "GET" instead of "POST", IE browser prompts the user with only ONE Open/Save Dialog box. However i like to have the form to have POST mechanism rather than GET and at the same time want the browser to prompt the user only once with Open/Save Dialog box... Any ideas
Thank
Krishn
response.Buffer =true
response.Charset = ""
response.ContentType = "application/vnd.ms-excel";
response.AppendHeader("Content-Disposition", "attachment;filename=sample.xls")
response.Write(data)
If the above page is accessed and button is clicked, IE browser throws up TWO Open/Save Dialog boxes.
If i change the "form" attribute "method" to "GET" instead of "POST", IE browser prompts the user with only ONE Open/Save Dialog box. However i like to have the form to have POST mechanism rather than GET and at the same time want the browser to prompt the user only once with Open/Save Dialog box... Any ideas
Thank
Krishn