Hi Telerik Team,
I am Arvind i am working on the rad Ajax manager, I am using rad Read Pane, inside the radPane i have created a HTML table with ID "messageTable" and i have added this Control (messageTable) to AjaxSettings Updated Control , inside the Table i have added a Asp Place Holder, at runtime i am adding LinkButtons to this and also i have added Event handler for this link buttons, My event handler Appears as follows:
protected void lb_Command(object sender, CommandEventArgs e)
{
//CreateLinks();
Response.ContentType = "application/octet-stream";
Response.AppendHeader("Content-Disposition", "attachment;filename=" + fileName);
//string aaa = Server.MapPath(spath + fileName);
Response.TransmitFile(Server.MapPath("~/" + spath + "/" + fileName));
Response.End();
}
on clicking the link the event is being fired and it is connecting to data base and getting the required data, after getting data from database , the data that is being retrieved consists of a file (binary data) when i try to down load the file i am getting the following error as shown in the figure : "Attachment Error.JPG".
Please help me as soon as possible.
Thanks & Regards
N A Chary.
I am Arvind i am working on the rad Ajax manager, I am using rad Read Pane, inside the radPane i have created a HTML table with ID "messageTable" and i have added this Control (messageTable) to AjaxSettings Updated Control , inside the Table i have added a Asp Place Holder, at runtime i am adding LinkButtons to this and also i have added Event handler for this link buttons, My event handler Appears as follows:
protected void lb_Command(object sender, CommandEventArgs e)
{
//CreateLinks();
Response.ContentType = "application/octet-stream";
Response.AppendHeader("Content-Disposition", "attachment;filename=" + fileName);
//string aaa = Server.MapPath(spath + fileName);
Response.TransmitFile(Server.MapPath("~/" + spath + "/" + fileName));
Response.End();
}
on clicking the link the event is being fired and it is connecting to data base and getting the required data, after getting data from database , the data that is being retrieved consists of a file (binary data) when i try to down load the file i am getting the following error as shown in the figure : "Attachment Error.JPG".
Please help me as soon as possible.
Thanks & Regards
N A Chary.