[CLOSED] Download file in grid command column click

  1. #1

    [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:
    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.AddHeader("content-disposition", "attachment; filename=test.doc");
            Response.ContentType = "application/octet-stream";
    Last edited by Daniil; Aug 31, 2010 at 1:36 PM. Reason: [CLOSED]
  2. #2
    Does the following example help solve the problem, see

    Geoffrey McGill
  3. #3
    Thanks, that worked. Solved. Just had to put "IsUpload = true" and it worked perfectly, like:

     grid.DirectEvents.Command.IsUpload = true;

Similar Threads

  1. Replies: 0
    Last Post: May 12, 2012, 11:24 AM
  2. Replies: 4
    Last Post: Dec 27, 2011, 5:11 PM
  3. Cancel grid row selection when command click?
    By Nagaraju in forum 1.x Help
    Replies: 0
    Last Post: Mar 08, 2011, 4:40 AM
  4. command column messing up grid column
    By wp_joju in forum 1.x Help
    Replies: 2
    Last Post: Dec 08, 2010, 6:40 AM
  5. Command column to open a file from db.
    By grmontero in forum 1.x Help
    Replies: 1
    Last Post: Mar 15, 2009, 7:30 AM

Posting Permissions