Skip to content

Instantly share code, notes, and snippets.

View alexferreira's full-sized avatar

Alex Ferreira alexferreira

  • Juster
  • São Paulo, SP
View GitHub Profile
if (int.Parse(ihid.Value.ToString()) == 0)
{
SqlConnection Cn = new SqlConnection(System.Web.Configuration.WebConfigurationManager.ConnectionStrings["exportaminasConnectionString"].ConnectionString);
Cn.Open();
SqlCommand Cmd = new SqlCommand("insert into TBEXM_ServicosComerciais (pais, endereco, fone, fax, email, website, chefe) " +
"values (@pais, @endereco, @fone, @fax, @email, @website, @chefe) ", Cn);
Cmd.CommandType = CommandType.Text;