Hello, I am trying to download a file from SQL Server...here is the method I normally use.
Do I need to do something with the RadAjaxManager here...or the RadScriptManager?
Thanks for any help.
Private
Sub
gvMain_ItemCommand(
ByVal
source
As
Object
,
ByVal
e
As
Telerik.Web.UI.GridCommandEventArgs)
Handles
gvMain.ItemCommand
If
e.CommandName =
"DownLoad"
Then
sch =
New
clsReport
Dim
arr
As
ArrayList = sch.DownloadLetter(e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)(
"ID"
))
Dim
fil
As
Byte
() = arr(0)
Dim
nam
As
String
= arr(1)
Dim
ext
As
String
= arr(2)
If
Not
fil
Is
Nothing
Then
Response.Clear()
Response.AddHeader(
"Content-Dispostiotion"
, nam &
"."
& ext)
Response.AddHeader(
"Content-Length"
, fil.Length.ToString)
Response.ContentType =
"application/octet-stream"
Response.BinaryWrite(fil)
End
If
End
If
End
Sub
Do I need to do something with the RadAjaxManager here...or the RadScriptManager?
Thanks for any help.