Click here to Skip to main content
15,846,977 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to make a project in which the PDF File should be opened on button click such as browse(to locate the file) in the client's browser but without sending it to the web server in ASP.Net using c#. Use of Java script is needed ?

Please help.

Thanks in advance

This may be help you

Share this answer
Try this

String strPop = "<script language='javascript'>" + Environment.NewLine +
"'C:\MyWork\Test\TestFile\test.pdf"','Report','height=520,width=730,toolbars=no,scrollbars=yes,resizable=yes');" + Environment.NewLine +
"</script>" + Environment.NewLine;
Page.RegisterStartupScript("Pop", strPop);
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900