I have the following piece of code, in which I have made the parameterized query, as I read somewhere that this avoids the SQL injection. But after making this change, I am still getting the SQL injection flaw.
StrCmd = "select TdsSubCode from Rate where TdsCode= @cboTdsCode and DSCode= @cboDedStatus"
dsCmd = New SqlCommand(StrCmd, conTdsPac)
dsCmd.CommandType = CommandType.Text
dsCmd.Parameters.AddWithValue("@cboTdsCode", cboTdsCode.Text)
dsCmd.Parameters.AddWithValue("@cboDedStatus", cboDedStatus.Text)
dsCmd.ExecuteReader()