lovely neha

lovely neha

  • NA
  • 70
  • 0

File Downloading in javascript

Feb 23 2009 11:23 PM

hii frds,

i have a RadGrid which is fill from Database. Grid have one column for files with dowanload button ..selected file get download...can any one give me code?

Dowanload.aspx

<telerik:RadGrid ID="rdgDocuments" AllowMultiRowSelection="false" runat="server"

Skin="Office2007" Height="100px" Width="100%" BorderStyle="None" PageSize="5"

AllowPaging="True" AutoGenerateColumns="False" GridLines="None"  >

<MasterTableView CommandItemDisplay="None" TableLayout="Fixed" EditMode="EditForms"

AutoGenerateColumns="False">

<PagerStyle Wrap="false" Mode="NextPrevAndNumeric" PrevPageImageUrl="Images/arrowLeft.gif"

NextPageImageUrl="Images/arrowRight.gif" NextPageText="Next" PrevPageText="Prev" />

<SortExpressions>

<telerik:GridSortExpression FieldName="FileId" SortOrder="Ascending" />

</SortExpressions>

<Columns>

<telerik:GridBoundColumn DataField="FileId" HeaderText="File ID" SortExpression="FileId"

UniqueName="FileId">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="FileName" HeaderText="File Name" SortExpression="FileName"

UniqueName="FileName">

</telerik:GridBoundColumn>

<telerik:GridTemplateColumn HeaderText="Download">

<ItemTemplate>

<asp:Button ID="btnDownload" CommandArgument="Download" runat="server" Text="Download" CssClass="buttons" />

</ItemTemplate>

</telerik:GridTemplateColumn>

</Columns>

</MasterTableView>

</telerik:RadGrid>

replying me ASAP