try
If CBFrom.Text = x Then
T = "insert into TransactionMaster (TransactionType) values ('Inward')"
Else
T = "insert into TransactionMaster (TransactionType) values('OutsideInward')"
End If
since this is insert queary you can call
SqlCommand.ExecuteNonQuery
method.
cmd.ExecuteNonQuery(CommandBehavior.CloseConnection)