Add ASHX file to your solution and call this page
bind each pdf id to each frame .
string bindtoFrame = "File.ashx?id=" + id.ToString();
public void ProcessRequest(HttpContext context)
{
string id = context.Request.QueryString["id"].ToString();
string sConn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnectionString"].ToString();
SqlConnection objConn = new SqlConnection(sConn);
objConn.Open();
DataTable file = new DataTable();
SqlCommand cmd = objConn.CreateCommand();
cmd.CommandType = CommandType.Text;
cmd.CommandText = "SELECT * FROM [AttachmentTable] where ID = '"+ id +"'";
SqlDataAdapter da = new SqlDataAdapter(cmd);
da.Fill(file);
objConn.Close();
cmd.Dispose();
if (file.Rows.Count > 0)
{
DataRow row = file.Rows[0];
string name = (string)row["Filename"];
string contentType = (string)row["FileExt"];
Byte[] data = (Byte[])row["Attachment"];
int FileSize = Convert.ToInt32(row["Filesize"].ToString());
//Send the file to the browser
context.Response.AddHeader("Content-type", "application/pdf");
context.Response.AddHeader("Content- Disposition", "attachment; filename=" + name);
context.Response.OutputStream.Write(data, 0, FileSize);
context.Response.Flush();
context.Response.End();
}
}