返回首页

消息框和Focus方法在ASP.Net:大家好,
我创建的事件:

protected void btnCapNhatLai_Click(object sender, EventArgs e)

    {

        if (txtPhanQuyen.Text == "")

            {

                ScriptManager.RegisterStartupScript(this, this.GetType(), "Alert", "Invalid value for role code!", true);

                txtPhanQuyen.Focus();

                return;

            }

    }

我填写为txtPhanQuyen空文本,但我不能看到消息框和文本框不集中。
请帮我解决!阮福缘

回答

评论会员: 时间:2
{