private void focusOnEmailTextField(bool status) { var currentURL = Request.Url.AbsolutePath; if (status) { if (currentURL.ToUpper().Contains("DEFAULT")) { ForgotPasswordEmailTextField.Focus(); } } else { if (currentURL.ToUpper().Contains("DEFAULT")) { EmailTextField.Focus(); } } }