protected void update(object sender, EventArgs e) { ADOlayer ad = new ADOlayer(); int tid = int.Parse(TextBox1.Text); string tname = TextBox2.Text; ad.updatedata(tid, tname); }
protected void showbid(object sender, EventArgs e) { ADOlayer ad = new ADOlayer(); int tid = int.Parse(TextBox1.Text); var data = ad.getstu(tid); GridView1.DataSource = data; GridView1.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { if (!this.IsPostBack) { ADOlayer ad = new ADOlayer(); var data = ad.Getallrecords(); GridView1.DataSource = data; GridView1.DataBind(); } }
protected void Insert(object sender, EventArgs e) { ADOlayer ad = new ADOlayer(); int tid = int.Parse(TextBox1.Text); string tname = TextBox2.Text; string tlocation = TextBox3.Text; string domain = TextBox4.Text; string StartDate = TextBox5.Text; ad.insertrow(tid, tname, tlocation, domain, StartDate); }