Server IP : 103.6.199.200 / Your IP : 18.225.175.230 Web Server : Microsoft-IIS/10.0 System : Windows NT EMPUSA 10.0 build 20348 (Windows Server 2016) i586 User : EMPUSA$ ( 0) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Domains/tradepan/cny18.trade-panel.com/wwwroot/ |
Upload File : |
<%@ page language="C#" autoeventwireup="true" inherits="WinMsmt, App_Web_qwgqh-7n" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head id="Head1" runat="server"> <title>Untitled Page</title> <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no" /> <script type="text/javascript" src="Member/js/jquery.min.js"></script> <script type="text/javascript" src="Member/js/qrcode.js"></script> <!--ForExport data in iamge --> <script type="text/javascript"> function ConvertToImage(btnExport) { html2canvas($("#qrcode")[0]).then(function (canvas) { var base64 = canvas.toDataURL(); $("[id*=hfImageData]").val(base64); __doPostBack(Button1.name, ""); }); return false; } </script> <!--ForExport data in iamge --> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> <script src="js/html2canvas.min.js" type="text/javascript"></script> </head> <body> <form id="form1" runat="server"> <div> <asp:Label ID="lblGift" runat="server" Text="Gift......"></asp:Label> </div> <input id="text1" type="text" value="http://jindo.dev.naver.com/collie" style="width:80%" /><br /> <br /><br /><br /><br /> <div id="qrcode" style="width:100px; height:100px; margin-top:15px;" runat="server"></div> <br /><br /><br /><br /> <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" Width="125px" OnClientClick="return ConvertToImage(this)" /> <div id="qr1code" style="width:100px; height:100px; margin-top:15px;" ></div> <asp:TextBox ID="text" runat="server" Text="1231231234"></asp:TextBox> <asp:HiddenField ID="hfImageData" runat="server" /> <table width="100%"> <tr> <td> <br /> </td> </tr> <tr> <td> <asp:Label ID="Labelgg" runat="server" CssClass="labans4" Text=""></asp:Label> </td> </tr> </table> <script type="text/javascript"> var qrcode = new QRCode(document.getElementById("qrcode"), { width : 100, height : 100 }); function makeCode () { var elText = document.getElementById("text"); if (!elText.value) { alert("Input a text"); elText.focus(); return; } qrcode.makeCode(elText.value); } makeCode(); $("#text12"). on("blur", function () { makeCode(); }). on("keydown", function (e) { if (e.keyCode == 13) { makeCode(); } }); </script> <asp:Label ID="lblExQ" runat="server" Text=""></asp:Label> <asp:Button ID="Button2" runat="server" Text="Button XXXX" OnClick="Button111_Click"/> </form> </body> </html>