Click here to Skip to main content
15,887,683 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
Posted

hi
This may be help you

http://forums.asp.net/t/1444006.aspx

thanks
 
Share this answer
 
v3
Try this

XML
String strPop = "<script language='javascript'>" + Environment.NewLine +
"window.open('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