Torna al Thread

string appo = Convert.ToString(Session["Username"]); strConn = "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=" + Server.MapPath("Lam - Copia.mdb") + ";"; Conn = new OleDbConnection(strConn); Conn.Open(); strSQL = "UPDATE Utenti SET Username = '" + appo + "' , Password = '" + RipPassword.Text + "' , Nome = '" + Nome.Text + "', Cognome = '" + Cognome.Text+ "', Telefono = '" +Tel.Text+ "' , Via = '" +Via.Text+ "', Citta = '" +Citta.Text+ "', Data = '"+ ddM.SelectedValue+"/"+ ddG.SelectedValue+"/"+ ddA.SelectedValue+"', Provincia = '" +ddP.SelectedValue+"' Where Username = '" +appo+ "'"; Cmd = new OleDbCommand(strSQL, Conn); Cmd.ExecuteNonQuery(); Conn.Close();
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5