1.在用户控件中添加javascript代码
<script type="text/javascript">
function txtUserNameFocus(){
$("#<%=txtUserName.ClientID %>").focus();
}
</script>
2.子页面中调用
<a href="#logoImage" onclick="txtUserNameFocus()">登录</a>
1.在用户控件中添加javascript代码
<script type="text/javascript">
function txtUserNameFocus(){
$("#<%=txtUserName.ClientID %>").focus();
}
</script>
2.子页面中调用
<a href="#logoImage" onclick="txtUserNameFocus()">登录</a>