protected void Button1_Click(object sender, EventArgs e) { pl.inserted_by = Session["emp_code"].ToString(); pl.complain = TextBox1.Text; pl.remark = TextBox2.Text; pl.pateint_code = Session["pateint_code"].ToString(); pl.opd_code = Session["opd_code"].ToString(); objb.add_opd_complain(pl); BindData(); }