using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using USBatchDataModel; public partial class _Default : System.Web.UI.Page { USBatchDataEntities db = new USBatchDataEntities(); protected void Page_Load(object sender, EventArgs e) { } protected void ButtonIn_Click(object sender, EventArgs e) { Contact con = new Contact(); con.id = Convert.ToInt32(TextBox1.Text); con.fname = TextBox2.Text; con.lname = TextBox3.Text; con.phone = TextBox4.Text; db.Contacts.AddObject(con); db.SaveChanges(); }
USBatchDataEntities db = new USBatchDataEntities();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)