Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.
This is my button1_click event: Dim breturn As Boolean breturn = verifyuser(loginname.Text, password.Text) If breturn = True Then Dim ticket As FormsAuthenticationTicket = New FormsAuthenticationTicket(loginname.Text, False, 5000) FormsAuthentication.RedirectFromLoginPage(loginname.Text, False) Else feedback.Text = "The Login Name and Password you typed in doesn't match our records" End If This is my "verifiyuser" function: Protected Function verifyuser(ByVal username As String, ByVal password As String) As Boolean Dim sdr As System.Data.SqlClient.SqlDataReader Dim con As SqlConnection = New SqlConnection("myconnectionstring) Dim breturn As Boolean Dim cmd As SqlCommand = New SqlCommand("login", con) cmd.CommandType = Data.CommandType.StoredProcedure cmd.Parameters.Add("@cologin", NVarChar, 255).Value = loginname cmd.Parameters("@cologin").Value = loginname con.Open() sdr = cmd.ExecuteReader While sdr.Read If sdr("Password") = password Then breturn = True End If End While Return breturn End Function This is my stored Procedure: @cologin as nvarchar (max) AS select * from members where cologin = @cologin RETURN
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.