protected void sbyid(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 techdomain = TextBox4.Text; string StartDate = TextBox5.Text; ad.insertrow(tid, tname, tlocation, techdomain, StartDate); }
protected void update(object sender, EventArgs e) { ADOLayer ad = new ADOLayer(); int tid = int.Parse(TextBox1.Text); // string tname = TextBox2.Text; // string tlocation = TextBox3.Text; string techdomain = TextBox4.Text; // string StartDate = TextBox5.Text; ad.updatedata(tid, techdomain); }