or
<telerik:RadUpload InputSize="40" Width="300" ID="RadUpload1" runat="server"
ControlObjectsVisibility="None" OnClientFileSelected="checkInputFilePath" />
<telerik:RadProgressArea ID="progressArea1" runat="server" Skin="" />
The function looks like this:
function checkInputFilePath(radUpload, eventArgs)
{
alert(
'here we are');
}
The alert never happens, though an alert downstream of this, in another function, does.
Anything additionally have to be set?
Thanks in advance
david
<telerik:GridButtonColumn ButtonType="ImageButton" CommandName="ImageDownload" Text="Download" UniqueName="ImageDownload" ImageUrl="~/images/dnn.gif"> <HeaderStyle Width="20px" /> <ItemStyle HorizontalAlign="Center" /> </telerik:GridButtonColumn>protected void RadGridImages_ItemCommand(object source, GridCommandEventArgs e) { if (e.CommandName.Equals("ImageDownload")) {
//commandargument has the physical path on the server of the selected file DownloadImage(e.CommandArgument.ToString()); } } private void DownloadImage(string imagePath) { FileInfo file = new FileInfo(imagePath); if (file.Exists) { Response.ClearContent(); Response.AddHeader("Content-Disposition", "attachment; filename=" + file.Name); Response.AddHeader("Content-Length", file.Length.ToString()); Response.ContentType = Studio1BusinessLayer.Helpers.ReturnExtension(file.Extension.ToLower()); Response.TransmitFile(file.FullName); Response.End(); } }