C
Control Freq
Hi,
Confused about loading a pdf file into an iframe from C# code behind.
I have a PDF file called temp2.pdf in my document root. The file is
physically located at C:\inetpub\wwwroot\MySite\temp2.pdf .
In the code behind I try:
Iframe1.Attributes.Add("src", "\\MySite\\temp2.pdf"); // THIS WORKS
Iframe1.Attributes.Add("src",
"c:\\inetpub\\wwwroot\\MySite\\temp2.pdf"); // NOT WORK.
Iframe1.Attributes.Add("src", "c:\\Any\\Other\\Directory\\temp2.pdf");
// NOT WORK.
Ideally I would like to put the PDF documents below some 'well known'
reports folder, such as C:\\Data\\Reports\\blah but I can't get it to
work.
Please help.
Regards
Confused about loading a pdf file into an iframe from C# code behind.
I have a PDF file called temp2.pdf in my document root. The file is
physically located at C:\inetpub\wwwroot\MySite\temp2.pdf .
In the code behind I try:
Iframe1.Attributes.Add("src", "\\MySite\\temp2.pdf"); // THIS WORKS
Iframe1.Attributes.Add("src",
"c:\\inetpub\\wwwroot\\MySite\\temp2.pdf"); // NOT WORK.
Iframe1.Attributes.Add("src", "c:\\Any\\Other\\Directory\\temp2.pdf");
// NOT WORK.
Ideally I would like to put the PDF documents below some 'well known'
reports folder, such as C:\\Data\\Reports\\blah but I can't get it to
work.
Please help.
Regards