本帖最后由 jchl147 于 2010-05-27 17:37:12 编辑

解决方案 »

  1.   

    首先获取前台的数据
    然后连接数据库
    然后执行insert操作
      

  2.   

     - -  我刚会写前台  哪会后台啊  刚学了点SQL语法
      

  3.   

    先从网上down个数据库访问类,下面就好办了。自己动手,丰衣足食!
      

  4.   

                string name = this.TextBox1.Text;
                int age = Convert.ToInt32(this.TextBox2.Text);
                string time = this.TextBox3.Text;
                string address = this.TextBox4.Text;
                string profession = this.TextBox5.Text;
                string phone = this.TextBox6.Text;
                SqlConnection con = new SqlConnection(@"Data Source=.\SQLEXPRESS;Initial Catalog=talents;Integrated Security=True;Pooling=False;");
                con.Open();
                SqlCommand com = new SqlCommand("insert into talents(talents_name,talents_age,talents_sr,talents_address,talents_profession,talents_phone) values('" + name + "','" + age + "','" + time + "','" + address + "','" + profession + "','" + phone + "')", con);
                com.ExecuteNonQuery();
                con.Close();这样对吗   但是还是实现不了  疯了
      

  5.   

    51aspx.com里很多
    添加runat="server"或服务器端控件asp:TextBox