protected void Button1_Click(object sender, EventArgs e) { var db = new DataClasses1DataContext(); firstone c = new firstone { name = TextBox1.Text.Trim(), email = TextBox2.Text.Trim(), //Status = "Active" }; //firstone.Connection.ConnectionString = //System.Configuration.ConfigurationManager.AppSettings["constr"]; // db.firstone.InsertOnSubmit(c); db.SubmitChanges(); }
partial void Updatefirstone(firstone instance);
partial void Deletefirstone(firstone instance);
partial void Insertfirstone(firstone instance);