i tried displaying pdf tat is inside application path and it works. But i need to display pdf from other drives how do i do it?
this is my code:
string filepath = Session["path1"].ToString();
System.Web.UI.AttributeCollection aCol = iFrame1.Attributes;
aCol.Add("src", filepath);
where i get path from a database and i also tried server.mappath and bt got error of using physical path
help me..
aCol.Add("src", filepath);
where i get path from a database and i also tried server.mappath and bt got error of using physical path
help me..
Iftikar HussainPosted Aug 17, 2013, 12:06 PM
You need to bind the src path like this
declare one global variable say
public string PdfPath;
assign the value from your database
and in your aspx
in page_load
use DataBind();
Regards,
Iftikar