Server IP : 103.6.199.200 / Your IP : 3.139.239.157 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/eup4u.com/wwwroot/ |
Upload File : |
<%@ page language="C#" autoeventwireup="true" inherits="Timer, App_Web_iqfshapw" %> <!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 runat="server"> <title>Untitled Page</title> <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> </head> <body> <form id="form1" runat="server"> <div> <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> <span id="Good1"></span> <div id="Good2" ></div> <div class="action"> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:Timer ID="Timer1" runat="server" OnTick="Timer1_Tick" Interval="700" Enabled="true"> </asp:Timer> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <asp:Label ID="LblPP" runat="server" Text="" Font-Size="Medium" ForeColor="Green"></asp:Label> <asp:Label ID="LblScript" runat="server" Text=""></asp:Label> </ContentTemplate> <Triggers> <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" /> </Triggers> </asp:UpdatePanel> </div> </div> </form> <script type='text/javascript'> function aspxPageFunction(ee) { document.getElementById("TextBox1").setAttribute("value",ee); document.getElementById("Good1").setAttribute("value",ee); document.getElementById("Good2").setAttribute("value",ee); var button = document.getElementById("Label1"); button.value=ee; }; </script> <script> $( document ).ready(function() { var button = document.getElementById("Label1"); alert(button.value); button.value = "33666634553"; // document.getElementById("Label1").value = "DDDD"; // document.forms["form1"]["Label1"].value = "New value"; // document.getElementById("Label1").setAttribute("value","My default value"); document.getElementById("TextBox1").setAttribute("value","My default value"); // aspxPageFunction(); alert(button.value); }); </script> </body> </html>