Results 1 to 2 of 2

Thread: saving data

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2002
    Location
    Pilipinas
    Posts
    441

    saving data

    Hi I use this to save data in ASP.net..

    rd.Close()
    cm.CommandText = "INSERT INTO gbook VALUES('" & TextBox1.Text & "','" & TextBox2.Text & "','" & TextBox3.Text & "','" & TextBox4.Text & "')"
    rd = cm.ExecuteReader

    But I encounter bugs.. kindly help me if what is the right syntax??

  2. #2
    Addicted Member rdove's Avatar
    Join Date
    Dec 2002
    Location
    Indianapolis
    Posts
    251

    Re: saving data

    what is the error that you get?

    The insert statement looks ok, unless one of the insert values needed to be a number, then it would error.
    ~Ryan





    Have I helped you? Please Rate my posts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width