Beispiel #1
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            adolayer ad  = new adolayer();
            int      Fid = int.Parse(TextBox1.Text);

            ad.delete2(Fid);
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        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);
        }
Beispiel #4
0
        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);
        }
Beispiel #5
0
        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();
        }
Beispiel #6
0
        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);
        }
Beispiel #7
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!this.IsPostBack)
     {
         adolayer ad   = new adolayer();
         var      data = ad.Getallrecords1();
         GridView1.DataSource = data;
         GridView1.DataBind();
     }
 }