Server IP : 103.6.199.200 / Your IP : 3.23.92.64 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/eup.trade-panel.com/wwwroot/ |
Upload File : |
<%@ page language="C#" autoeventwireup="true" inherits="TimeDemo, App_Web_gqnuwa16" %> <!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> <script> function AddToCartAjax(method, data, beforeSend, success, error) { $.ajax({ url: 'ajax.aspx/', + method, data: JSON.stringify(data), type: "POST", dataType: "json", contentType: "application/json; charset=utf-8", beforeSend: beforeSend, success: success, error: error }) } var items = { "quantity": total_qty, "itemId": itemId }; AddToCartAjax("AddTo_Cart", items, function (xhr, sett) { // @beforeSend alert("Start!!!"); }, function (data, status, xhr) { // @success alert("a"); }, function(xhr, status, err){ // @error alert("Sorry!!!"); }); </script> </head> <body> <form id="form1" runat="server"> <div> <input type="button" value="Download Word File AJAX" onclick="DownloadFile('Sample.docx')" /> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> <script type="text/javascript" src="https://cdn.datatables.net/1.10.20/js/jquery.dataTables.min.js"></script> <link href="https://cdn.datatables.net/1.10.20/css/jquery.dataTables.css" rel="stylesheet" type="text/css" /> <script type="text/javascript"> function setCookie(cname, cvalue, exdays) { var d = new Date(); d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000)); var expires = "expires="+d.toUTCString(); document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/"; } function getCookie(cname) { var name = cname + "="; var ca = document.cookie.split(';'); for(var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) == ' ') { c = c.substring(1); } if (c.indexOf(name) == 0) { return c.substring(name.length, c.length); } } return ""; } function DownloadFile(fileName) { var xx2 = getCookie("HaiT"); var fileName2 = document.getElementById('RecoverPasswordForm').value; $.ajax({ type: "POST", url: "ajax.aspx/SetCustomers", data: '{fileName: "' + fileName2 + '", Enc01: "' + xx2 + '" }', contentType: "application/json; charset=utf-8", dataType: "json", success: function (r) { if (r.d != "" && r.d != null) { setCookie("HaiT", r.d, 365); } alert(r.d); } }); }; function Base64ToBytes(base) { }; </script> <div id = "dvCustomers"> <table class="tblCustomer" cellpadding="2" cellspacing="0" border="1"> <tr> <th> <b><u><span class="name"></span></u></b> </th> </tr> <tr> <td> <b>City: </b><span class="city"></span><br /> <b>Postal Code: </b><span class="postal"></span><br /> <b>Country: </b><span class="country"></span><br /> <b>Phone: </b><span class="phone"></span><br /> <b>Fax: </b><span class="fax"></span><br /> </td> </tr> </table> </div> <asp:TextBox ID="RecoverPasswordForm" runat="server"></asp:TextBox> </div> <script> $(document).ready(function(){ alert("Hello"); }); </script> </form> </body> </html>