K
K Viltersten
I'm using the following method for authorization. I wonder if
it's at all possible to make it show the text on the second line
WHILE validating and then, if the login has failed, show the
red message. When i run the code, i don't get to see it...
protected void SubmitData(object sender, EventArgs e) {
LogInInformation.Text = "Validating the credentials...";
if (CommunicationLayer.IsActiveMember(
UserName.Text, Password.Text)) {
FormsAuthentication.RedirectFromLoginPage(
UserName.Text, false);
LogInInformation.Text = "";
}
else {
LogInInformation.ForeColor = Color.Red;
LogInInformation.Text = "Invalid credentials!";
}
}
it's at all possible to make it show the text on the second line
WHILE validating and then, if the login has failed, show the
red message. When i run the code, i don't get to see it...
protected void SubmitData(object sender, EventArgs e) {
LogInInformation.Text = "Validating the credentials...";
if (CommunicationLayer.IsActiveMember(
UserName.Text, Password.Text)) {
FormsAuthentication.RedirectFromLoginPage(
UserName.Text, false);
LogInInformation.Text = "";
}
else {
LogInInformation.ForeColor = Color.Red;
LogInInformation.Text = "Invalid credentials!";
}
}