用脚本在客户端做吧。
lable.Text = DateTime.Now.Tostring(),时服务器端的时间
lable.Text = DateTime.Now.Tostring(),时服务器端的时间
解决方案 »
- .net DataTable问题
- 请教两次页面间数据传递的问题
- DataGrid获取TextBox值
- 怎么设定input的高度,并且有垂直方向的下拉框?
- 用dataAdapter填充dataset,select到0行而出错,怎么解决?
- 重新开一个心贴,还是关于treeview的问题
- 请问怎样让 request接收 # & + 这三个符号?
- 救命呀!!!我用asp.net+C#+ORACLE开发一套MIS程序,为什么经常出现dllhost.exe应用程序错误,请问哪位遇见过。怎么解决呀?
- 向大家提问一个关于textbox里内容检索的问题!! 急!!
- 自动添加模板列,怎么自定义模板列的HeaderText呢?
- ***********怎样才能无提示关掉原窗体呢?
- 关于Calendar 控件的小小问题
<body onload="startclock()">
<script language="JavaScript">
var timerID = null;
var timerRunning = false;
function stopclock (){
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;}
function startclock () {
stopclock();
showtime();}
function showtime () {
var now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds()
var timeValue = "" +((hours >= 12) ? "下午 " : "上午 " )
timeValue += ((hours >12) ? hours -12 :hours)
timeValue += ((minutes < 10) ? ":0" : ":") + minutes
timeValue += ((seconds < 10) ? ":0" : ":") + seconds
document.clock.thetime.value = timeValue;
timerID = setTimeout("showtime()",1000);
timerRunning = true;}</script>
<form name="clock">
<p><input name="thetime" style="font-size: 9pt;color:#000000;border:0" size="12"></p>
</form>
</body>
</html>