Ejemplo n.º 1
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            Bll_reg bl = new Bll_reg();

            bl.bll_update(Convert.ToInt32(Session["id"].ToString()), TextBox1.Text, TextBox2.Text, TextBox3.Text, TextBox4.Text);
            Response.Redirect("Display.aspx");
        }
Ejemplo n.º 2
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            Bll_reg bl = new Bll_reg();

            bl.bll_save(TextBox1.Text, TextBox2.Text, TextBox3.Text, TextBox4.Text);
            Response.Write("Inserted Successfully");
            Response.Redirect("Display.aspx");
        }
Ejemplo n.º 3
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            Bll_reg bl = new Bll_reg();

            dt = bl.bll_Search(txtSearch.Text);
            DataList1.DataSource = dt;
            DataList1.DataBind();
        }
Ejemplo n.º 4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Bll_reg bl = new Bll_reg();

            dt = bl.bll_Display();
            DataList1.DataSource = dt;
            DataList1.DataBind();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            id = Convert.ToInt32(Request.QueryString["id"].ToString());
            Bll_reg bl = new Bll_reg();

            bl.bll_delete(id);
            Response.Write("Deleted Succesfully");
            Response.Redirect("Display.aspx");
        }
Ejemplo n.º 6
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack)
            {
                return;
            }
            id            = Convert.ToInt32(Request.QueryString["id"].ToString());
            Session["id"] = id;
            Bll_reg bl = new Bll_reg();

            dt = bl.fillback(id);
            foreach (DataRow dr in dt.Rows)
            {
                TextBox1.Text = dr["Name"].ToString();
                TextBox2.Text = dr["Dob"].ToString();
                TextBox3.Text = dr["Ninumber"].ToString();
                TextBox4.Text = dr["Address"].ToString();
            }
        }