|  HTML beginner |  | Voorbeeld: 
 
    
    
        
            
                            
	    Connectie.Open()
            Dim strSQL As String = "INSERT INTO tblNieuws (titel, bericht, datum, auteur) VALUES (@titel, @bericht, @datum, @auteur)"
            Dim command As New OleDbCommand(strSQL, Connectie)
            command.Parameters.AddWithValue("@titel", txtTitel.Text)
            command.Parameters.AddWithValue("@bericht", txtBericht.Text)
            command.Parameters.AddWithValue("@datum", DateTime.Now.ToString("dd/MM/yyyy HH:mm:ss"))
            Dim onlinebeheerder As String = User.Identity.Name.ToString()
            command.Parameters.AddWithValue("@auteur", onlinebeheerder)           
            command.ExecuteNonQuery()
 Connectie.Open()            Dim strSQL As String = "INSERT INTO tblNieuws (titel, bericht, datum, auteur) VALUES (@titel, @bericht, @datum, @auteur)"            Dim command As New OleDbCommand(strSQL, Connectie)            command.Parameters.AddWithValue("@titel", txtTitel.Text)            command.Parameters.AddWithValue("@bericht", txtBericht.Text)            command.Parameters.AddWithValue("@datum", DateTime.Now.ToString("dd/MM/yyyy HH:mm:ss"))            Dim onlinebeheerder As String = User.Identity.Name.ToString()            command.Parameters.AddWithValue("@auteur", onlinebeheerder)                       command.ExecuteNonQuery()
   |