在页面加载完成后,<input type='text' value='' id="test"/> test输入框获得焦点
------解决方案--------------------------------------------------------
How to: Set Focus on ASP.NET Web Server Controls
http://msdn.microsoft.com/en-us/library/ms178232(v=vs.100).aspx
------解决方案--------------------------------------------------------
- JScript code
window.onload = function(){ var oInput = document.getElementById("test"); oInput.focus(); }
------解决方案--------------------------------------------------------
jquery 写法
$(function(){
$( "#test ").select();
})
------解决方案--------------------------------------------------------
------解决方案--------------------------------------------------------
<# Convert.ToInt32(Eval("分数"))>=90?"<img src=\"xxx.gif\"/>":"<img src=\"xxx.jpg\"/>"%