vb.net . Incorrect syntax near ')'. Dim temp As Integer = Convert.ToInt32(cmd.ExecuteScalar().ToString()) : Incorrect syntax near ')'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Data.SqlClient.SqlException: Incorrect syntax near ')'.

Source Error: 


Line 26:             Dim cmd As SqlCommand = New SqlCommand(checkuser, con)
Line 27: 
Line 28:             Dim temp As Integer = Convert.ToInt32(cmd.ExecuteScalar().ToString())
Line 29:             con.Close()
Line 30: 
