示例#1
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            ADOLayer n   = new ADOLayer();
            int      sid = int.Parse(TextBox1.Text);

            n.deletestu(sid);
        }
示例#2
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            ADOLayer ad    = new ADOLayer();
            int      fid   = int.Parse(TextBox1.Text);
            string   fname = TextBox2.Text;

            ad.insertrowoff(fid, fname);
        }
示例#3
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            ADOLayer ad  = new ADOLayer();
            int      tid = int.Parse(TextBox1.Text);

            string techdomain = TextBox2.Text;

            ad.updatedata(tid, techdomain);
        }
示例#4
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            ADOLayer ad    = new ADOLayer();
            int      cid   = int.Parse(TextBox1.Text);
            string   cname = TextBox2.Text;
            int      nfs   = int.Parse(TextBox3.Text);

            ad.insertrowofc(cid, cname, nfs);
        }
示例#5
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            ADOLayer ad  = new ADOLayer();
            int      tid = int.Parse(TextBox1.Text);

            int nfs = int.Parse(TextBox3.Text);

            ad.updatedataofc(tid, nfs);
        }
示例#6
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!this.IsPostBack)
     {
         ADOLayer ad   = new ADOLayer();
         var      data = ad.Getallrecordsofc();
         GridView1.DataSource = data;
         GridView1.DataBind();
     }
 }