Using JavaScript to show the current time for the end user
2005-12-29 20:38
597 查看
<%@ Page Language=”VB” %>
<html xmlns=”http://www.w3.org/1999/xhtml” >
<head runat=”server”>
<title>Using JavaScript</title>
</head>
<body onload=”javascript:document.forms[0][‘TextBox1’].value=Date();”>
<form id=”form1” runat=”server”>
<div>
<asp:TextBox ID=”TextBox1” Runat=”server” Width=”300”></asp:TextBox>
</div>
</form>
</body>
</html>
<html xmlns=”http://www.w3.org/1999/xhtml” >
<head runat=”server”>
<title>Using JavaScript</title>
</head>
<body onload=”javascript:document.forms[0][‘TextBox1’].value=Date();”>
<form id=”form1” runat=”server”>
<div>
<asp:TextBox ID=”TextBox1” Runat=”server” Width=”300”></asp:TextBox>
</div>
</form>
</body>
</html>
相关文章推荐
- Demo: Using Javascript / JQuery to play back user actions on the web
- 安装apache_2.2.4时选择only for the Current User, on 8080, when started Manually
- 155.The user HR owns the EMP table. The user HR grants privileges to the user SCOTT by using this co
- 读《The End of an Architectural Era (It’s Time for a Complete Rewrite)》
- The origin server did not find a current representation for the target resource or is not willing to
- Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection
- [React Intl] Format a Date Relative to the Current Date Using react-intl FormattedRelative
- An Introduction to WebDriver Using the JavaScript Bindings
- 10 ways to format time and date using JavaScript
- 创建虚拟机错误解决:Unable to find a 'userdata.img' file for ABI x86 to copy into the AVD folder.
- Get tasks assigned to user or to current user groups in SharePoint using CAML query
- How to add icon for the item of ListCtrl using C++ (Mail Attachment ListCtrl) - 如何用C++为ListCtrl的Item添加图标(邮件附件ListCtrl)
- Yii CDbConnection failed to open the DB connection: SQLSTATE[28000] [1045] Access denied for user
- facebook permissions : How to check if the user has already allowed publish_stream for your app
- Are you looking for a way to get the entire text of a word document into a RichEdit without using the Clipboard?
- ABAP code to find all the User Exits and BADIs for any transaction
- Switch view in the InfoPath form according to the whether current user is in SharePoint group admin
- 解决 The user operation is waiting for "Building workplace" to complete
- BI Java 补丁错误处理 :Cannot login to the SAP J2EE Engine using user and password as provided in the Filesystem Secure Store. Enter va
- Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection