Click here to Skip to main content
15,903,175 members
Home / Discussions / C#
   

C#

 
GeneralRe: Parsing JSon Pin
OriginalGriff15-Nov-18 22:31
mveOriginalGriff15-Nov-18 22:31 
GeneralRe: Parsing JSon Pin
pkfox15-Nov-18 22:38
professionalpkfox15-Nov-18 22:38 
GeneralRe: Parsing JSon Pin
OriginalGriff15-Nov-18 23:03
mveOriginalGriff15-Nov-18 23:03 
GeneralRe: Parsing JSon Success Pin
pkfox15-Nov-18 23:19
professionalpkfox15-Nov-18 23:19 
GeneralRe: Parsing JSon Success Pin
OriginalGriff15-Nov-18 23:37
mveOriginalGriff15-Nov-18 23:37 
GeneralRe: Parsing JSon Success Pin
pkfox15-Nov-18 23:39
professionalpkfox15-Nov-18 23:39 
GeneralRe: Parsing JSon Success Pin
pkfox16-Nov-18 2:57
professionalpkfox16-Nov-18 2:57 
QuestionGuys need your help am trying to insert data in MS Access database but its giving me a "Syntax Error" and i cnt find the problem....please analyse it and help Pin
Member 1405572615-Nov-18 2:09
Member 1405572615-Nov-18 2:09 
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.OleDb;

namespace Login
{
    public partial class Registration : Form
    {
        private OleDbConnection connection = new OleDbConnection();
        public Registration()
        {

            InitializeComponent();
            connection.ConnectionString = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=F:\VB projects\Project\DataBase\OnlineRetailDataBase.accdb;
            Persist Security Info=False;";
         
        }

        private void btn_Submit_Click(object sender, EventArgs e)
        {
            try
            {
                connection.Open();
                OleDbCommand command = new OleDbCommand();
                command.Connection = connection;
                command.CommandText = "INSERT into OnlineRetailDataBase (FirstName, SurName, DateOfBirth, Gender, BankName, BankAccountNumber, Email, Password) VALUES ('" + txt_Fname.Text + "','" + txt_Surname.Text + "','" + txt_dob.Text + "','" + txt_Gender.Text + "','" + txt_Bname.Text + "','" + txt_ban.Text + "','" + txt_Email.Text + "','" + txt_Password.Text + "',)";
                command.ExecuteNonQuery();
                MessageBox.Show("You Now Registered, Please Login");
            }
            catch (Exception ex)
            {
                MessageBox.Show("Error" + ex);
                connection.Close();
            }
 }

        private void txt_Fname_TextChanged(object sender, EventArgs e)
        {

        }
 }
}

AnswerRe: Guys need your help am trying to insert data in MS Access database but its giving me a "Syntax Error" and i cnt find the problem....please analyse it and help Pin
OriginalGriff15-Nov-18 2:17
mveOriginalGriff15-Nov-18 2:17 
AnswerRe: Guys need your help am trying to insert data in MS Access database but its giving me a "Syntax Error" and i cnt find the problem....please analyse it and help Pin
Member 1332584615-Nov-18 21:00
Member 1332584615-Nov-18 21:00 
QuestionTo MD5 or not? (or SHA256 instead, I guess...) Pin
Super Lloyd14-Nov-18 15:34
Super Lloyd14-Nov-18 15:34 
AnswerRe: To MD5 or not? (or SHA256 instead, I guess...) Pin
Dave Kreskowiak14-Nov-18 16:37
mveDave Kreskowiak14-Nov-18 16:37 
GeneralRe: To MD5 or not? (or SHA256 instead, I guess...) Pin
Super Lloyd14-Nov-18 17:41
Super Lloyd14-Nov-18 17:41 
AnswerRe: To MD5 or not? (or SHA256 instead, I guess...) Pin
OriginalGriff14-Nov-18 19:52
mveOriginalGriff14-Nov-18 19:52 
GeneralRe: To MD5 or not? (or SHA256 instead, I guess...) Pin
Super Lloyd14-Nov-18 20:05
Super Lloyd14-Nov-18 20:05 
GeneralRe: To MD5 or not? (or SHA256 instead, I guess...) Pin
OriginalGriff14-Nov-18 20:09
mveOriginalGriff14-Nov-18 20:09 
Questionc# Win Forms, Event Handlers, Store a global setting and retrieve it in an event handler Pin
jkirkerx14-Nov-18 13:28
professionaljkirkerx14-Nov-18 13:28 
AnswerRe: c# Win Forms, Event Handlers, Store a global setting and retrieve it in an event handler Pin
OriginalGriff14-Nov-18 19:58
mveOriginalGriff14-Nov-18 19:58 
GeneralRe: c# Win Forms, Event Handlers, Store a global setting and retrieve it in an event handler Pin
jkirkerx15-Nov-18 7:54
professionaljkirkerx15-Nov-18 7:54 
AnswerRe: c# Win Forms, Event Handlers, Store a global setting and retrieve it in an event handler Pin
Nathan Minier15-Nov-18 1:17
professionalNathan Minier15-Nov-18 1:17 
GeneralRe: c# Win Forms, Event Handlers, Store a global setting and retrieve it in an event handler Pin
jkirkerx15-Nov-18 7:58
professionaljkirkerx15-Nov-18 7:58 
AnswerRe: c# Win Forms, Event Handlers, Store a global setting and retrieve it in an event handler Pin
BillWoodruff15-Nov-18 13:36
professionalBillWoodruff15-Nov-18 13:36 
GeneralRe: c# Win Forms, Event Handlers, Store a global setting and retrieve it in an event handler Pin
jkirkerx16-Nov-18 9:40
professionaljkirkerx16-Nov-18 9:40 
AnswerRe: c# Win Forms, Event Handlers, Store a global setting and retrieve it in an event handler Pin
Mycroft Holmes15-Nov-18 13:59
professionalMycroft Holmes15-Nov-18 13:59 
GeneralRe: c# Win Forms, Event Handlers, Store a global setting and retrieve it in an event handler Pin
jkirkerx16-Nov-18 9:44
professionaljkirkerx16-Nov-18 9:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.