无刷新,动态设置页面焦点的问题

来源:互联网 发布:mysql查询count 编辑:程序博客网 时间:2024/05/16 10:55

 如果在asp.net页面中用微软的AJAX,则控制焦点使用以下:

 
    protected void TextBox1_TextChanged(object sender, EventArgs e)
    {
        ScriptManager1.SetFocus(TextBox1);
    }

原创粉丝点击