<html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <script src="Scripts/jquery.fancybox.js" type="text/javascript"></script> <link href="Scripts/jquery.fancybox.css" rel="stylesheet" type="text/css" /> <script src="Scripts/jquery-1.4.1.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function () { $("a.fancyFrame").fancybox({ 'frameWidth': 200, 'frameHeight': 200, 'overlayShow': true, 'hideOnContentClick': false, 'type': 'iframe' }); }); </script> </head> <body> <form id="form1" runat="server"> <div> <div> <asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" /> <iframe src="Articles/HelloWorld.pdf" width="600" height="500"></iframe> <a id="myFrame" class="fancyFrame" title="Item Title" href="???"> Link to Document</a> </div> </div> </form> </body> </html>
protected void Button1_Click(object sender, EventArgs e) { string pdfPath=""; //the pdf file path is supplied here on runtime }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)