Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
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
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.