Savita Joshi

Savita Joshi

  • NA
  • 129
  • 132.9k

Keyword not supported: 'datasource'.ERROR

Mar 30 2011 1:39 AM
Hi friends

Keyword not supported: 'datasource'.


The code behind for a button click is as below:

 protected void Button1_Click(object sender, EventArgs e)
  {
  obj.connect();
  obj.cmd.Parameters.Add("@ID",SqlDbType.Int).Value=TextBox1.Text;
  obj.cmd.Parameters.Add("@Password", SqlDbType.VarChar).Value = TextBox2.Text;
  obj.cmd.Parameters.Add("@ConfirmPassword", SqlDbType.VarChar).Value = TextBox3.Text;
  obj.cmd.Parameters.Add("@Email", SqlDbType.VarChar).Value = TextBox4.Text;
 
  obj.cmd = new SqlCommand("submitrecord");
  obj.cmd.ExecuteNonQuery();
  obj.db.Close();
  Label l1 = new Label();
  l1.Text = "Record has been submitted!";
  }

Answers (29)