Aug 30, 2010, 7:33 PM
[CLOSED] Download file in grid command column click
Hi. I have a grid with a CommandColumn. I want to force a download when user clicks the CommandColumn corresponding button. Th method i used worked using updatepanel (i just had to create postback triggers), but i don't know how to accomplish the same with coolite, since i'm getting this error when trying to download:
Status Code: 200
Status Text: NORESPONSE
Have you got any example of how to force a file download with coolite?
Here is the method i used:
Status Code: 200
Status Text: NORESPONSE
Have you got any example of how to force a file download with coolite?
Here is the method i used:
byte[] blob = LoadFile();
Response.Clear();
Response.AddHeader("content-disposition", "attachment; filename=test.doc");
Response.BinaryWrite(blob);
Response.ContentType = "application/octet-stream";
Response.End();
Last edited by Daniil; Aug 31, 2010 at 1:36 PM.
Reason: [CLOSED]