cenetadmin
asked on
Open a PDF from my C# .asp net site
I have the exact path of the PDF file I want to open...I simply want to open it up in a new window...I want to do it from my click event
What is the best way to do it? I was trying this but never got the syntax right to pass the pdf file to the script code... If the code below is the best way...how do I pass the page parameter in the line? Instead of it being hardcoded as 'YOURPAGE.pdf'?
Response.Write("<script type='text/javascript'>det ailedresul ts=window. open('YOUR PAGE.pdf') ;</script> ")
I really don't want to add alot of javascript if there is another way.
What is the best way to do it? I was trying this but never got the syntax right to pass the pdf file to the script code... If the code below is the best way...how do I pass the page parameter in the line? Instead of it being hardcoded as 'YOURPAGE.pdf'?
Response.Write("<script type='text/javascript'>det
I really don't want to add alot of javascript if there is another way.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
that was what it was...I created a virtual IIS directory and it worked. thanks for your help!
ASKER