Exemple #1
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            emp td   = new emp();
            int Id   = Convert.ToInt32(TextBox1.Text);
            var list = td.getdata(Id);

            GridView1.DataSource = list;
            GridView1.DataBind();
        }
Exemple #2
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            emp    td     = new emp();
            int    Id     = int.Parse(TextBox1.Text);
            string domain = TextBox2.Text;

            string err = td.updatee(Id, domain);

            Label1.Text = err;
        }
Exemple #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!this.IsPostBack)
     {
         emp t     = new emp();
         var slist = t.Getallrecords();
         GridView1.DataSource = slist;
         GridView1.DataBind();
     }
 }
Exemple #4
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            emp    td       = new emp();
            int    Id       = int.Parse(TextBox1.Text);
            string name     = TextBox2.Text;
            string location = TextBox3.Text;
            string domain   = TextBox4.Text;
            string sdate    = TextBox5.Text;

            td.Insertrow(Id, name, location, domain, sdate);
        }