This is a migrated thread and some comments may be shown as answers.

[Solved] Donload button on a grid

1 Answer 120 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Cátia
Top achievements
Rank 1
Cátia asked on 02 Jul 2009, 04:12 PM
Hi,

I have a download button a grid to allow the download of a file and I can't make it work.
I have the download on other page that works nice but in the grid I can't use it because it doesn't accept the code I used on the other page.
The code to the download is the following:

Descarregar contedo

<a href="anexos/<%# Eval("NomeAnexo")%>" class="descarregarConteudo" title="Descarregar contedo"><img src="imagens/page_white_put.png" class="descarregarConteudo" /> </a>

 



And I'm using the following HTML code to the download button:

<

 

telerik:GridButtonColumn ButtonType="ImageButton" ImageUrl="~/imagens/page_white_put.png" ItemStyle-HorizontalAlign="Center" HeaderText="Descarregar" HeaderStyle-HorizontalAlign="Center" text="Descarregar contedo"></telerik:GridButtonColumn>

Does anyone knows how can I solve this problem?
Thanks!

 

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 06 Jul 2009, 05:37 AM
Hello Cátia,

I suppose you have an ajaxified grid. If thats the case, then you can go through the following forum link which discusses on a similar issue:
AJAX and File Download

Also refer to the following help document which you may find helpful to achieve your requirement:
AJAX And File Upload

Thanks
Princy.
Tags
Grid
Asked by
Cátia
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or