Пример #1
0
        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();
        }
Пример #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!this.IsPostBack)
     {
         ADOLayer ad   = new ADOLayer();
         var      data = ad.Getallrecords();
         GridView1.DataSource = data;
         GridView1.DataBind();
     }
 }
Пример #3
0
        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);
        }
Пример #4
0
        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);
        }