jalojavier
Programmer
Hello,
I have a little problem with a button in a web application that i'm developing. I have two textbox for the user and password and a button to log in.. I have this code:
protected void Page_Load(object sender, System.EventArgs e) {
// this.LBLinkProductos.Text = "<A href=\"products.aspx\">[Productos]</A>";
// this.LBLinkRegistrarse.Text = "<A href=\"registro.aspx\">[Registrarse]</A>";
// this.LBLinkContactar.Text = "<A href=\"contact.aspx\">[Contactar]</A>";
// this.LBRegistrarse.Text = "<A href=\"registro.aspx\">Registrarse</A>";
this.error.Text = "XXVVVV";
this.Load += new System.EventHandler(this.Page_Load);
this.Login.Click += new System.EventHandler(this.Login_Click);
if (User.Identity.IsAuthenticated) {
userIdentificado();
}
else {
userNoIdentificado();
}
// Put user code to initialize the page here
}
Where:
this.Login.Click += new System.EventHandler(this.Login_Click);
______________________________________________________________________
Is the code where i assign the event to the button "Login"..
In the other hand:
Code:
protected void Login_Click(object sender, EventArgs e)
{
error.Text = "Pushing....?";
identify();
}
______________________________________________________________________
When i press the button loads a web page that seems to this:
But the labels don't change and not execute the "identify()" method that is the method that identify the users.. In resumen, don't do nothing.
¿Anyone know whats happen?
I have a little problem with a button in a web application that i'm developing. I have two textbox for the user and password and a button to log in.. I have this code:
protected void Page_Load(object sender, System.EventArgs e) {
// this.LBLinkProductos.Text = "<A href=\"products.aspx\">[Productos]</A>";
// this.LBLinkRegistrarse.Text = "<A href=\"registro.aspx\">[Registrarse]</A>";
// this.LBLinkContactar.Text = "<A href=\"contact.aspx\">[Contactar]</A>";
// this.LBRegistrarse.Text = "<A href=\"registro.aspx\">Registrarse</A>";
this.error.Text = "XXVVVV";
this.Load += new System.EventHandler(this.Page_Load);
this.Login.Click += new System.EventHandler(this.Login_Click);
if (User.Identity.IsAuthenticated) {
userIdentificado();
}
else {
userNoIdentificado();
}
// Put user code to initialize the page here
}
Where:
this.Login.Click += new System.EventHandler(this.Login_Click);
______________________________________________________________________
Is the code where i assign the event to the button "Login"..
In the other hand:
Code:
protected void Login_Click(object sender, EventArgs e)
{
error.Text = "Pushing....?";
identify();
}
______________________________________________________________________
When i press the button loads a web page that seems to this:
But the labels don't change and not execute the "identify()" method that is the method that identify the users.. In resumen, don't do nothing.
¿Anyone know whats happen?