Problem with a button in ASP.NET

A

Alejandro

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:


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:

Code:

______________________________________________________________________

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:


http://localhost/ovenator/index.aspx?txtBoxLogin=jalo&textBoxPass=prueba&Login=Login

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,161
Latest member
GertrudeMa
Top