MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click SqlDataSource1.SelectCommand = "SELECT COUNT(*) AS Result, username, password " & _ " FROM Tabela1 " & _ " GROUP BY username, password " & _ " HAVING (COUNT(*) = 1) " & _ " AND username = '" & TextBox1.Text & "'" & _ " And password = '" & TextBox2.Text & "'" SqlDataSource1.DataBind() If GridView1.Rows.Count < 1 Then Label1.Text = "user not found it" Else Label1.Text = "user found it" End If End Sub
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
14 Experts available now in Live!