该用户从未签到
|
| |
+ W9 ^( i+ _, ~! I4 }往ACCESS 添加数据/ c( g6 b( N" M- o- S% `
+ J. ]3 g2 ^; q4 k( p+ u, q
string aaa="insert into zhuce(a_name,a_pwd,a_apwd,a_e-mail,a_tel) values('"+TextBox1.Text+",'"+TextBox2.Text+"','"+TextBox3.Text+"','"+TextBox4.Text+"','"+TextBox5.Text+"')";
! g6 E. Z, c7 R+ F) oOleDbConnection myconnection = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+Server.MapPath("db1.mdb")); % H5 P& p# ~! f) z* ]3 B
OleDbCommand mycommand = new OleDbCommand(aaa,myconnection); - G! F9 N9 V I+ t1 d
mycommand.Connection.Open(); ! i) Q) c# @! i$ m& w9 S
mycommand.ExecuteNonQuery(); 0 O/ g1 m# c8 `0 z9 `
mycommand.Connection.Close();
6 A/ o# \$ y% H, N! ~7 Q9 CResponse.Write("<script language=Javascript>alert('注册成功')</script>"); 6 l w$ A$ A2 r% ^8 c" V
% y! u0 i/ K/ M8 J0 y2 P) {
& |0 I. I) }; k6 Q0 c& t; r
老是说INSERT INTO 语句的语法错误 ! j3 @- n6 o: D
检查了N变都没发现哪里错(C#的) ) i* h* b O! U, V! J: g
|
|
|
|