byte[] bytes = (byte[])GetData("SELECT * FROM [CME_Attachment] where ID = '" + ActID + "'").Rows[0]["Attachment"]; string name = name.pdf; int FileSize = Convert.ToInt32(ddd.Rows[0][4].ToString()); Response.AddHeader("Content-type", "application/pdf"); Response.AddHeader("Content- Disposition", "attachment; filename=" + name); Response.OutputStream.Write(bytes, 0, FileSize); Response.Flush(); Response.End(); iframepdf.Attributes["src"] = ;
byte[] bytes = (byte[])GetData("SELECT [A_id],[Attachment],[A_name],[A_Ext],[A_size] ,[A_ActivityID],[A_type]" + " FROM [CME_Attachment] where A_ActivityID = '" + ActID + "' and A_type = '" + AttID + "'").Rows[0]["Attachment"]; string name = ddd.Rows[0][2].ToString(); int FileSize = Convert.ToInt32(ddd.Rows[0][4].ToString()); //int FileSize = Convert.ToInt32(row["A_size"].ToString()); Response.AddHeader("Content-type", "application/pdf"); Response.AddHeader("Content- Disposition", "attachment; filename=" + name); Response.OutputStream.Write(bytes, 0, FileSize); Response.Flush(); Response.End(); iframepdf.Attributes["src"]
srcdoc
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)