Say for example on the ASP.NET form I put a Username and password,
I validate it on that form with the validation buttons.
Now I go to the .vb code and put in what I want as far as the username and password and what happens when you click the submit button,
Protected Sub btnSubmit_Click (ByVal sender As Object, ByVal e As System.EventArg s) Handles btnSubmit.Click
If ((txtPassword.T ext = "pass") & (txtUsername.Te xt = "mary")) Then
Response.Cookie s("Username").V alue = txtUsername.Tex t
Response.Redire ct("bid1main.as px")
Else
lblMessage.Text = "<font color = red> Sorry, " & "invalid username and/or password!</font>"
the code there about the lblMessage.Text , What happens to the validation code that is in the asp page??? I hope this makes since to someone.
How do I validate it here on the .vb page when it is already validated??
Thank you for anyone who understands and can help me!!!
I validate it on that form with the validation buttons.
Now I go to the .vb code and put in what I want as far as the username and password and what happens when you click the submit button,
Protected Sub btnSubmit_Click (ByVal sender As Object, ByVal e As System.EventArg s) Handles btnSubmit.Click
If ((txtPassword.T ext = "pass") & (txtUsername.Te xt = "mary")) Then
Response.Cookie s("Username").V alue = txtUsername.Tex t
Response.Redire ct("bid1main.as px")
Else
lblMessage.Text = "<font color = red> Sorry, " & "invalid username and/or password!</font>"
the code there about the lblMessage.Text , What happens to the validation code that is in the asp page??? I hope this makes since to someone.
How do I validate it here on the .vb page when it is already validated??
Thank you for anyone who understands and can help me!!!
Comment