Esempio n. 1
0
        public static void UpdateDatabase1FromJS()
        {
            Random           random = new Random();
            SQL_cs_connector cs_con = new SQL_cs_connector(SqlConProp.domain, SqlConProp.database1, SqlConProp.login, SqlConProp.pass);

            cs_con.UpdateTable("Table1", "name", random.Next(100));
            cs_con.Disconnect();
        }
Esempio n. 2
0
 private void button2_Click(object sender, EventArgs e)
 {
     if (cs_con != null)
     {
         Random random = new Random();
         cs_con.UpdateTable("Table1", "name", random.Next(100));
         this.dataGridView1.DataSource = cs_con.SelectTable("Table1");
     }
 }
Esempio n. 3
0
        protected void Button2_Click(object sender, EventArgs e)
        {
            Random           random = new Random();
            SQL_cs_connector cs_con = new SQL_cs_connector(SqlConProp.domain, SqlConProp.database1, SqlConProp.login, SqlConProp.pass);

            cs_con.UpdateTable("Table1", "name", random.Next(100));
            this.GridView1.DataSource = cs_con.SelectTable("Table1");
            this.GridView1.DataBind();
            this.GridView1.Visible = true;
            cs_con.Disconnect();
        }