Hello Telerik Team,
I am having RADgrid in on of the module of my application. In there we have linkbutton by which i have to download document.
So before i implemented client binding it was working on server side by Item command event. but as i have implemented client side binding i m not getting command argument which are given on client side by javascript.
so below is the code running on server side,
Now, Can we do this thing in javascript or by web service? I m not sure abt this one.
I am having RADgrid in on of the module of my application. In there we have linkbutton by which i have to download document.
So before i implemented client binding it was working on server side by Item command event. but as i have implemented client side binding i m not getting command argument which are given on client side by javascript.
so below is the code running on server side,
MemoryStream stream = TheWay.GetDocument("*", Number, "*", "*") as MemoryStream;<
br
>
Response.ContentType = contentType ?? "text/plain";<
br
>
Response.AddHeader("Content-Disposition", "attachment;filename=" + attachment.FileName);<
br
>
byte[] buffer = stream.ToArray();<
br
>
stream.Read(buffer, 0, Convert.ToInt32(stream.Length));<
br
>
Response.ClearContent();<
br
>
Response.BinaryWrite(buffer); <
br
>
Response.End();
Now, Can we do this thing in javascript or by web service? I m not sure abt this one.