Using VB.Net and SQL Server
I want to compare the textbox value with table row value by using if condition
Code
If textbox1.text = cmd
cmd = New SqlCommand("Select name from table1", con) Then
cmd.ExecuteNonQuery()
cmd = SqlCommand
The above code is showing error in if condition. I don't know how to compare the textbox value with table row value by using if condition.
What is the proper way to use if condition.