protected void Page_Load(object sender, EventArgs e)
{
//Focus 001: Set the Default focus to the Name text Box
txtName.Focus();
}
protected void txtFocustoLabel_Click(object sender, EventArgs e)
{
//Focus 002: Set the focus to required control
txtOrderNo.Focus();
}
1 回答
您可以尝试在页面加载时关注它
但是在这个例子中不能保证,你可以为我们提供一些按钮设置,这样我们就可以进一步了解它 .