Exemplo n.º 1
0
        void createnew()
        {
            textBox1.Clear();
            textBox2.Clear();
            conection      con = new conection();
            SqlDataAdapter sad = new SqlDataAdapter("stor", con.activesqlcon());

            sad.SelectCommand.CommandType = CommandType.StoredProcedure;
            DataTable dt = new DataTable();

            sad.Fill(dt);
            textBox1.Text = dt.Rows[0][0].ToString();
        }