protected void Button1_Click(object sender, EventArgs e) { adolayer ad = new adolayer(); int Fid = int.Parse(TextBox1.Text); ad.delete2(Fid); }
protected void Button1_Click(object sender, EventArgs e) { adolayer ad = new adolayer(); int Id = int.Parse(TextBox1.Text); string name = TextBox2.Text; ad.updatestudent(Id, name); }
protected void Button1_Click(object sender, EventArgs e) { adolayer ad = new adolayer(); int Fid = int.Parse(TextBox1.Text); string Fname = TextBox2.Text; ad.insertrow2(Fid, Fname); }
protected void Button1_Click(object sender, EventArgs e) { adolayer ad = new adolayer(); int Cid = int.Parse(TextBox1.Text); string Course = TextBox2.Text; int students = int.Parse(TextBox3.Text); ad.insertrow(Cid, Course, students); }
protected void Button1_Click(object sender, EventArgs e) { adolayer ad = new adolayer(); int Cid = int.Parse(TextBox1.Text); var d = ad.getcor(Cid); GridView1.DataSource = d; GridView1.DataBind(); }
protected void Button1_Click(object sender, EventArgs e) { adolayer ad = new adolayer(); int Cid = int.Parse(TextBox1.Text); int students = int.Parse(TextBox2.Text); ad.updatecourses(Cid, students); }
protected void Page_Load(object sender, EventArgs e) { if (!this.IsPostBack) { adolayer ad = new adolayer(); var data = ad.Getallrecords1(); GridView1.DataSource = data; GridView1.DataBind(); } }