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
J
JustForLive
@JustForLive
Posts
-
How to insert data into database -
html controls access on server side??if u set the html controls in the reapter,datalist etc.. the htmlcontrols or webcontrols will be add some words like "ctl00" before the html id