我用JS写了个动态显示时间的,代码如下;
 <script type ="text/javascript">
<!-- Hide
var timerID = null
var timerRunning = false
function MakeArray(size) 
{
this.length = size;
for(var i = 1; i <= size; i++)
{
this[i] = "";
}
return this;
}
function stopclock (){
if(timerRunning)
clearTimeout(timerID);
timerRunning = false
}
function showtime () {
var now = new Date();
var year = now.getYear();
var month = now.getMonth() + 1;
var date = now.getDate();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds();
var day = now.getDay();var timeValue = "";timeValue +=year+"-";
timeValue +=((month < 10) ? " 0" : " ") + month + "-"
timeValue += date +  " ";
timeValue += ((hours <= 12) ? hours : hours - 12);
timeValue += ((minutes < 10) ? ":0" : ":") + minutes;
timeValue += ((seconds < 10) ? ":0" : ":") + seconds;document.jsfrm.face.value = timeValue;
timerID = setTimeout("showtime()",1000);
timerRunning = true
}
function startclock () {
stopclock();
showtime()
}
//-->
</script>
</head>
<body onload="startclock();"><form action ="ItemList.aspx" NAME='jsfrm'>
当前时间是:
<input type="text" name='face' size="25" value=''/>
    
</form>
那么,我如何在.CS代码中把这个<input type="text" name='face' size="25" value=''/>控件的值读取出来,赋给C#变量呢?请大虾帮忙!!!谢谢了!!