locked
Can some one quily do this for me RRS feed

  • Question

  • User507348793 posted

    Can someone please do this for me so i can look at the sourcecode

    Create 2 Textboxes  Name, Surname and then an MS access mdb file with no password then

    if the user fills in name and surname it puts that in acces database file

    (all i want to see here is the C# and Sql Statement that is done coding for how its done)

    Thx For any help

    ___________________________________________________________________________________________________________________________

    What i tried is

    protected void btnSubmit_Click(object sender, EventArgs e)
                {
                   
                string conn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:/All stuff/Database1.mdb";
                SqlConnection cnn  = new SqlConnection(conn);
                SqlCommand sqlcom = new SqlCommand();
                sqlcom.CommandText = "INSERT INTO Database1(Name,Surname,Phone) VALUES('"+txtName.Text+","+txtPhone.Text+","+txtSurname.Text+")";

                   
                }

    my error i recieve is provider keyword not supported

     __________________________________________________________________________________________________________________

    Wednesday, June 23, 2010 5:06 AM

Answers