Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to insert data into database

How to insert data into database

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdatabasetutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    ypsyong
    wrote on last edited by
    #1

    Hi, good day! May i know how to insert 2 data key in by user in the textbox into database. I'm using ASP.Net 1.1 and MSSQL2000. Can anyone give me the solution. Thanks! :)

    Best Regards, Pei Sun

    V J 2 Replies Last reply
    0
    • Y ypsyong

      Hi, good day! May i know how to insert 2 data key in by user in the textbox into database. I'm using ASP.Net 1.1 and MSSQL2000. Can anyone give me the solution. Thanks! :)

      Best Regards, Pei Sun

      V Offline
      V Offline
      Vipin Venugopal
      wrote on last edited by
      #2

      can u plz make the question more clearer. by the by do u want the SQL query for inserting or do u want to know how to pass the value to SQL query. Vipin

      1 Reply Last reply
      0
      • Y ypsyong

        Hi, good day! May i know how to insert 2 data key in by user in the textbox into database. I'm using ASP.Net 1.1 and MSSQL2000. Can anyone give me the solution. Thanks! :)

        Best Regards, Pei Sun

        J Offline
        J Offline
        JustForLive
        wrote on last edited by
        #3

        u can use google or baidu.com. there're more correct answers for example: string sql = string.Format("INSERT INTO Table(vl1, vl2) VALUES('{0}', '{1}')" , txtbox1.Text , txtbox2.Text ); then defined sqlconnection,sqlcommand etc, open the sql database. then u could be get the results of sql command

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups