bluejoao Posted March 7, 2009 at 11:38 AM Report Share #248885 Posted March 7, 2009 at 11:38 AM Tou a criar uma classe para por uma password num botão e criei este codigo, mas no response da-,e um "erro" (name response is not declared).. não percebo o que tenho que fazer para retirar o erro... help? 😉 Public Class Class_login Public Function Login(ByVal TextBox1 As TextBox, ByVal TextBox2 As TextBox) If TextBox1.Text = "admin" And TextBox2.Text = "admin" Then Response.Redirect("admin.aspx") Else Response.Redirect("erro.aspx") End If End Function End Class Link to comment Share on other sites More sharing options...
Hellblazer Posted March 8, 2009 at 09:03 AM Report Share #249061 Posted March 8, 2009 at 09:03 AM Em vez de Response.Redirect exprimenta Server.Transfer 😄 There are two ways to write error-free programs; only the third one works. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now