I'm trying to insert a supplier to SQL Server but it always throws an exception on the line cmd.ExecuteNonQuery(). Really need some help!

I'm trying to insert a supplier to SQL Server but it always throws an exception on the line cmd.ExecuteNonQuery(). Really need some help!

You never give the command object a connection, either do so in the SqlCommand() constructor or use command.Connection = con;
(An SqlCommand is disposable; you should create and use it within a using () {} construct to prevent resource leak)