为什么不能输出内容?
如何解决?
>>>aspx不支持<script src="html.js"></script>么?
should work, your code has a scripting error at
document.Photo.location.href=file.asp;
try
<input class="text" type="text" name="otime" size="20" maxlength="20" onKeyPress="KeyPress();" value="<%=System.DateTime.Now.ToString("yyyyMMddHHmmss9")%>"