How to insert data into database
-
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
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
-
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
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